Beispiel #1
0
    private void Awake()
    {
        PlayerData.instance.CheckInstance();

        Time.timeScale = 1f;

        StartCoroutine(SceneFader.Instance.FadeIn(1f));
        upgrade = GameObject.FindObjectOfType<CastleUpgrade>();
        info = GameObject.FindObjectOfType<CastleInfo>();

        stageClearEventReceiver = new GameEventReceiver(GameEvent.FirstC0S1Cleared, OnFirstC0S1Cleared);
        chapter0ClearEventReceiver = new GameEventReceiver(GameEvent.FirstChapter0Cleared, OnFirstChapter0Cleared);
        appRatingEventReceiver = new GameEventReceiver(GameEvent.AppRating, ShowAppRatingPopup);

        Invoke("CheckEvents", 1f);
    }
Beispiel #2
0
 private void Awake()
 {
     animator = GetComponent<Animator>();
     upgrade = GameObject.FindObjectOfType<CastleUpgrade>();
     main = GameObject.FindObjectOfType<Main>();
 }