public virtual void _VirtualAnimation() { switch (_state) { case _eMushRoomState.InstallSet: _state = _eMushRoomState.Install; break; case _eMushRoomState.Install: /* * _installobj = Instantiate (cCharacterInfoManager._GetInst ()._GetMushRoomInfo ((int)_number)._installObject, this.transform.parent) as GameObject; * _installobj.transform.localPosition = Vector2.zero; * * _endani = _installobj.GetComponent<cInstallAniEnd> (); */ _state = _eMushRoomState.Awake; break; case _eMushRoomState.Awake: /* * if (_endani._AniEnd) { * * DestroyObject (_installobj.gameObject); * * this.transform.localPosition = Vector2.zero; * * _endani = null; * _state = _eMushRoomState.Idle; * * GameObject obj = cObjectPool.SharedInstance.GetPooledObject ("CreateEffect"); * * if (obj != null) { * * obj.transform.parent = this.transform; * obj.transform.localPosition = new Vector3 (0, -0.35f); * obj.SetActive (true); * } * } */ this.transform.localPosition = Vector2.zero; GameObject obj = cObjectPool.SharedInstance.GetPooledObject("CreateEffect"); if (obj != null) { obj.transform.parent = this.transform; obj.transform.localPosition = new Vector3(0, -0.35f); obj.SetActive(true); } _state = _eMushRoomState.Idle; break; } }
public void _SetState(_eMushRoomState state) { _state = state; }