mirror of
https://github.com/ConjureETS/DeathBook.git
synced 2026-03-24 12:30:59 +00:00
35 lines
573 B
C#
35 lines
573 B
C#
using UnityEngine;
|
|
using System.Collections;
|
|
using DeathBook.Model;
|
|
using UnityEngine.UI;
|
|
|
|
[RequireComponent(typeof(Image))]
|
|
public class UIFriendPicture : MonoBehaviour
|
|
{
|
|
private Person _model;
|
|
|
|
public Person Model
|
|
{
|
|
get { return _model; }
|
|
set { _model = value; }
|
|
}
|
|
|
|
private Image _picture;
|
|
|
|
public Image Picture
|
|
{
|
|
get { return _picture; }
|
|
}
|
|
|
|
void Awake()
|
|
{
|
|
_picture = GetComponent<Image>();
|
|
}
|
|
|
|
public void OnClick()
|
|
{
|
|
_model.SelectNode();
|
|
_model.SelectNode();
|
|
}
|
|
}
|