Exemple #1
0
 // Start is called before the first frame update
 void Start()
 {
     direction = 0;
     animator  = gameObject.GetComponent <Animator>();
     audio     = gameObject.GetComponent <AudioSource>();
     PlayRolling();
     canMoveLeft  = true;
     canMoveRight = true;
     sceneMover   = (SceneMovementManager)GameObject.FindObjectOfType(typeof(SceneMovementManager));
     choiceMenu   = (ChoiceMenu)GameObject.FindObjectOfType(typeof(ChoiceMenu));
     finalScore   = (FinalScoreHandler)GameObject.FindObjectOfType(typeof(FinalScoreHandler));
 }
Exemple #2
0
 void Start()
 {
     sceneMover = (SceneMovementManager)GameObject.FindObjectOfType(typeof(SceneMovementManager));
     // choiceGenerator = (ChoiceGenerator)GameObject.FindObjectOfType(typeof(ChoiceGenerator));
 }