Ejemplo n.º 1
0
 // Update is called once per frame
 void Update()
 {
     CastleManager.CastleUpdate();
     if (state == GameState.IDLE)
     {
         gameUI.alpha  = Mathf.Lerp(gameUI.alpha, 1, Time.deltaTime * 10);
         initMap.alpha = Mathf.Lerp(initMap.alpha, 0, Time.deltaTime * 10);
     }
     if (Input.GetKeyDown("`"))
     {
         if (mode == GameMode.EDITOR)
         {
             mode = GameMode.GAME;
         }
         else
         {
             mode = GameMode.EDITOR;
         }
         unitDisplay.SetMode();
     }
 }