mirror of
https://github.com/ConjureETS/DeathBook.git
synced 2026-03-24 04:20:58 +00:00
39 lines
711 B
C#
39 lines
711 B
C#
using UnityEngine;
|
|
using System.Collections;
|
|
using DeathBook.Model;
|
|
using UnityEngine.UI;
|
|
|
|
[RequireComponent(typeof(Image))]
|
|
public class UIFriendPicture : MonoBehaviour
|
|
{
|
|
private Person _model;
|
|
private Level lvl;
|
|
|
|
public Person Model
|
|
{
|
|
get { return _model; }
|
|
set { _model = value; }
|
|
}
|
|
|
|
private Image _picture;
|
|
|
|
public Image Picture
|
|
{
|
|
get { return _picture; }
|
|
}
|
|
|
|
void Awake()
|
|
{
|
|
lvl = LevelManager.Instance.GameLevel;
|
|
_picture = GetComponent<Image>();
|
|
}
|
|
|
|
public void OnClick()
|
|
{
|
|
if (lvl.tutorialInt == 3)
|
|
lvl.allowNext = true;
|
|
_model.SelectNode();
|
|
_model.SelectNode();
|
|
}
|
|
}
|