private void Awake()
    {
        if (instance == null)
        {
            instance = this;
        }
        else
        {
            Destroy(gameObject);
        }

        DontDestroyOnLoad(gameObject);

        mainCanvasGroup.alpha = 1f;
        mainCanvas.SetActive(true);

        shopCanvasGroup.alpha = 0f;
        shopCanvas.SetActive(false);

        slotMachineCanvasGroup.alpha = 0f;
        slotMachineCanvas.SetActive(false);

        monsterCanvasGroup.alpha = 0f;
        monsterCanvas.SetActive(false);
    }
Exemplo n.º 2
0
    //public GameObject ShopUI;

    private void OnEnable()
    {
        eventMaster           = GetComponent <GameManager_EventMaster>();
        eventMaster.GoToShop += GoToShop;
    }
Exemplo n.º 3
0
 void SetInitialReferences()
 {
     eventMasterScript = GameObject.Find("GameManager").GetComponent <GameManager_EventMaster> ();
 }
 private void OnEnable()
 {
     eventMaster = GetComponent <GameManager_EventMaster>();
     eventMaster.GoToSlotMachine += GoToSlotMachine;
 }
 private void OnEnable()
 {
     eventMaster = GetComponent <GameManager_EventMaster>();
     eventMaster.GoToMainMenu += GoToMainMenu;
 }
 void SetInitialReferences()
 {
     eventMasterScript = GameObject.Find("GameManager").GetComponent<GameManager_EventMaster>();
     player = GameObject.Find("FPSController").GetComponent<Transform>();
 }
Exemplo n.º 7
0
 private void OnEnable()
 {
     eventMaster             = GetComponent <GameManager_EventMaster>();
     eventMaster.GoToIngame += GoToIngameScene;
 }