Esempio n. 1
0
 protected override bool Init()
 {
     if (_ctrlPartnerSelect == null)
     {
         _ctrlPartnerSelect = GameObject.Find("PartnerShip").GetComponent <CtrlPartnerSelect>();
     }
     if (_ctrlStarterSelect == null)
     {
         _ctrlStarterSelect = GameObject.Find("CtrlStarterSelect").GetComponent <CtrlStarterSelect>();
     }
     _shipCancelled = false;
     _clsState      = new StatementMachine();
     _clsState.AddState(InitStarterSelect, UpdateStarterSelect);
     return(true);
 }
Esempio n. 2
0
 protected override bool Init()
 {
     if (this._ctrlPartnerSelect == null)
     {
         this._ctrlPartnerSelect = GameObject.Find("PartnerShip").GetComponent <CtrlPartnerSelect>();
     }
     if (this._ctrlStarterSelect == null)
     {
         this._ctrlStarterSelect = GameObject.Find("CtrlStarterSelect").GetComponent <CtrlStarterSelect>();
     }
     this._shipCancelled = false;
     this._clsState      = new StatementMachine();
     this._clsState.AddState(new StatementMachine.StatementMachineInitialize(this.InitStarterSelect), new StatementMachine.StatementMachineUpdate(this.UpdateStarterSelect));
     return(true);
 }
 public static CtrlPartnerSelect Instantiate(CtrlPartnerSelect prefab, Transform parent)
 {
     return(Object.Instantiate <CtrlPartnerSelect>(prefab));
 }
Esempio n. 4
0
 public static CtrlPartnerSelect Instantiate(CtrlPartnerSelect prefab, Transform parent)
 {
     return(UnityEngine.Object.Instantiate(prefab));
 }