コード例 #1
0
        public override void SetUpReferences()
        {
            base.SetUpReferences();

            spawner     = GetComponent <GameSpawner>();
            progression = GetComponent <GameProgression>();
            pooler      = GetComponent <GamePooler>();
            sounds      = GetComponent <GameSounds>();
        }
コード例 #2
0
        public override void Initialise()
        {
            seed = Random.Range(0, 99999);
            base.Initialise();

            instance = this;

            progressionTimer = 0;
            progressUI.SetLevelProgress(0);
            SetGameLevelStartEffect(progressUI.SetLevel(currentLevel - 1));
            gameSpeed = Mathf.Clamp(currentLevel, 0, 5);
        }