Player
private Action InteractAct
public Action Interaction {get {return InteractAct;} set {InteractAct = value;}}
Object
private void Communicate()
{
"Hello Indie Game Dev !"
}
Update
{
if Condition1
Player.instance.Interaction = Communicate;
}
Action 을 프로퍼티로 넘기면 안되는건가...
오 쉣 초기화 할때 이벤트를 안넣었네