Beispiel #1
0
        public virtual void Init(T level)
        {
            anim = AnimationManager.instance;
            game = GameScheduler.instance;

            this.level = level;

            group = GetComponent <CanvasGroup>();
        }
Beispiel #2
0
        void Awake()
        {
            if (instance == null)
            {
                instance = this;
                DontDestroyOnLoad(gameObject);

                Init();
            }
            else
            {
                Destroy(gameObject);
            }
        }