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); }
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); }
public static CtrlStarterSelect Instantiate(CtrlStarterSelect prefab, Transform parent) { return(Object.Instantiate <CtrlStarterSelect>(prefab)); }
public static CtrlStarterSelect Instantiate(CtrlStarterSelect prefab, Transform parent) { return(UnityEngine.Object.Instantiate(prefab)); }