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