void Start() { gc = GameObject.Find("Main Camera").GetComponent <GameController>(); player = GameObject.Find("Player"); uicontrol = GameObject.Find("Canvas").GetComponent <UIcontroller>(); phone = GameObject.Find("Phone"); wsm = this.GetComponent <WangStateMachine>(); na = this.GetComponent <NavMeshAgent>(); }
void Start() { player = GameObject.Find("Player"); gc = GameObject.Find("Main Camera").GetComponent <GameController>(); Wang = GameObject.Find("Mr.Wang"); wsm = Wang.GetComponent <WangStateMachine>(); instruction01 = GameObject.Find("instruction01"); instruction02 = GameObject.Find("instruction02"); instruction03 = GameObject.Find("instruction03"); instruction04 = GameObject.Find("instruction04"); }
public State02(WangStateMachine sm) : base(sm) { }
public StartState(WangStateMachine sm) : base(sm) { }
public WangStates(WangStateMachine sm) { wsm = sm; }