private void Start() { /* Getting and setting instance of TutorialSceneController. */ ctrl = TutorialSceneController.Instance; normalStone.SetActive(true); pressedStone.SetActive(false); time = 0f; }
void Start() { index = 0; time = 0; round = 0; rounds = anim.Length - 1; /* Deactivates all added sprites expect the first one - anim[0] */ for (int i = 1; i < anim.Length; i++) { anim[i].SetActive(false); } controller = TutorialSceneController.Instance; }
void Start() { /* * Creates class object FootStepCycleScript(). * Getting and setting instance of TutorialSceneController. * Resets stepSprites. * Defines other variables. */ stepCycle = new FootStepCycleScript(steps); controller = TutorialSceneController.Instance; stepCycle.resetSprites(1); stepTimer = 0f; nextStep = 0f; size = steps.Length; round = 0; roundBreak = false; freeze = false; finished = false; }
private void Start() { /* Getting and setting instance of TutorialSceneController. */ ctrl = TutorialSceneController.Instance; }