Beispiel #1
0
    private void Awake()
    {
        singleTon = this;
        Button_Pause.onClick.AddListener(() => { PauseActivate(true); });
        Button_Unpause.onClick.AddListener(() => { PauseActivate(false); });
        Button_MainMenu.onClick.AddListener(ReturnToMainMenu);

        if (_achieveentManagement == null)
        {
            _achieveentManagement = Behaviour.FindObjectOfType <AchievementsManagement>();
        }
    }
    private void Awake()
    {
        if (LM == null)
        {
            LM = Behaviour.FindObjectOfType <LoadingManager>();
        }
        if (AchievementsManagement == null)
        {
            AchievementsManagement = Behaviour.FindObjectOfType <AchievementsManagement>();
        }

        Button_Resume.onClick.AddListener(Continue);
        Button_Quit.onClick.AddListener(Quit);
        Button_LevelSelect.onClick.AddListener(SelectLevel);
        Button_OnCheckNextLevel.onClick.AddListener(OnCheckingLevel);
        Button_Avatar.onClick.AddListener(AvatarSelect);
    }
 private void Awake()
 {
     singletion = this;
 }
Beispiel #4
0
 private void Awake()
 {
     LoadingScreen          = Behaviour.FindObjectOfType <LoadingManager>();
     AchievementsManagement = FindObjectOfType <AchievementsManagement>();
 }