示例#1
0
 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");
 }
示例#3
0
 public State02(WangStateMachine sm) : base(sm)
 {
 }
示例#4
0
 public StartState(WangStateMachine sm) : base(sm)
 {
 }
示例#5
0
 public WangStates(WangStateMachine sm)
 {
     wsm = sm;
 }