SwitcherGameProduction.cs 610 B

1234567891011121314151617181920212223242526
  1. using System;
  2. using UnityEngine;
  3. using System.Collections;
  4. public class SwitcherGameProduction : MonoBehaviour
  5. {
  6. public Transform TransformNoneLifja;
  7. public Transform TransformDurexLifja;
  8. void Start () {
  9. switch (MenuManager._instance.CurStateGameState)
  10. {
  11. case MenuManager.StateGameProduction.DurexLifja:
  12. TransformNoneLifja.gameObject.SetActive(false);
  13. TransformDurexLifja.gameObject.SetActive(true);
  14. break;
  15. case MenuManager.StateGameProduction.None:
  16. TransformNoneLifja.gameObject.SetActive(true);
  17. TransformDurexLifja.gameObject.SetActive(false);
  18. break;
  19. }
  20. }
  21. }