void _StartAction(long begin_time, float speed, float direction, Regulus.Types.Vector2 vector, Regulus.Project.TurnBasedRPG.ActionStatue action_status) { animation.Play(action_status.ToString()); gameObject.transform.rotation = Quaternion.Euler(0, (direction) % 360, 0); }
void _OnChangeStatus(Regulus.Project.Crystal.UserStatus obj) { GameObject[] stages = new GameObject[]{LogoStage , VerifyStage , ParkingStage , AdventureStage , BattleStage} ; var stage = GameObject.Instantiate(stages[(int)obj]) as GameObject; _ChangeStage(stage); Debug.Log("切換場景" + obj.ToString()); }