Ejemplo n.º 1
0
 void UpdateAppearUI()
 {
     cameraPosition = GameManager.GetGameManagerInstance().GetCameraPosition();
     if (cameraPosition == GameManager.CameraPosition.Out)
     {
         Calender.GetComponent <MeshRenderer>().enabled     = true;
         Nutrient.GetComponent <MeshRenderer>().enabled     = false;
         ShelterStats.GetComponent <MeshRenderer>().enabled = false;
         TurnEndButton.SetActive(true);
         UpgradeButton.SetActive(false);
     }
     else if (cameraPosition == GameManager.CameraPosition.Mid)
     {
         Calender.GetComponent <MeshRenderer>().enabled     = true;
         Nutrient.GetComponent <MeshRenderer>().enabled     = true;
         ShelterStats.GetComponent <MeshRenderer>().enabled = false;
         TurnEndButton.SetActive(true);
         UpgradeButton.SetActive(true);
     }
     else if (cameraPosition == GameManager.CameraPosition.In)
     {
         Calender.GetComponent <MeshRenderer>().enabled     = true;
         Nutrient.GetComponent <MeshRenderer>().enabled     = true;
         ShelterStats.GetComponent <MeshRenderer>().enabled = true;
         TurnEndButton.SetActive(true);
         UpgradeButton.SetActive(true);
     }
     else if (cameraPosition == GameManager.CameraPosition.Default)
     {
         Debug.Log("cameraPosition : Default");
     }
     else
     {
         Debug.LogError("Invalid input at 'UpdateAppearUI' method");
     }
 }