Пример #1
0
 private void Start()
 {
     gameEventStateMachine = GetComponent <GameEventStateMachine>();
     mainCamera            = Camera.main;
     normalState           = new GameStateNormal(tileHighLightSprite, mainCamera);
     gameEventStateMachine.ChangeState(normalState);
 }
Пример #2
0
 public void BuildingPlaced(bool val)
 {
     normalState = new GameStateNormal(tileHighLightSprite, mainCamera);
     gameEventStateMachine.ChangeState(normalState);
 }