Esempio n. 1
0
 public override void Enter(BuildingController entityType)
 {
     if (entityType.Building.CurrentLevel == BuildingLevel.BuildingLevel1)
     {
         entityType.Building.CurrentLevel = BuildingLevel.BuildingLevel2;
         entityType.GetFSM().ChangeState(Building_StateBeforeBuilt.Instance());
     }
     else
     {
         entityType.GetFSM().ChangeState(Building_StateDispatching.Instance());
     }
 }
Esempio n. 2
0
 public override void Enter(BuildingController entityType)
 {
     entityType.GetFSM().ChangeState(Building_StateDispatching.Instance());
 }