Example #1
0
 public virtual void Init <T>(T data) where T : CharacterData
 {
     SetData(data);
     GetData().entity = this;
     StateMachine     = new CharacterStateMachine(this);
     StateMachine.SetCurrentState <CharacterIdleState>();
 }