30 lines
615 B
C#
30 lines
615 B
C#
|
using System;
|
|||
|
using System.Collections.Generic;
|
|||
|
using HK.Tool;
|
|||
|
using UnityEngine;
|
|||
|
using UnityEngine.UI;
|
|||
|
|
|||
|
namespace FUJIFILM
|
|||
|
{
|
|||
|
public class UploadPic: MonoBehaviour
|
|||
|
{
|
|||
|
public Image target;
|
|||
|
public UploadPhotoPage uploadPage;
|
|||
|
|
|||
|
private void Awake()
|
|||
|
{
|
|||
|
uploadPage.UploadCallbackAction += UploadCallback;
|
|||
|
}
|
|||
|
|
|||
|
public void StartUpload(Image _target)
|
|||
|
{
|
|||
|
target = _target;
|
|||
|
uploadPage.OpenBeamer();
|
|||
|
}
|
|||
|
|
|||
|
private void UploadCallback(List<Sprite> obj)
|
|||
|
{
|
|||
|
target.sprite = obj[0];
|
|||
|
}
|
|||
|
}
|
|||
|
}
|