Exemple #1
0
 private void Awake()
 {
     boxCollider   = GetComponent <BoxCollider>();
     anim          = selector.GetComponent <Animator>();
     popPopMachine = FindObjectOfType <PopPopMachine>();
     pause         = FindObjectOfType <GamePause>();
     canDrag       = true;
 }
Exemple #2
0
 private void Awake()
 {
     candyMachine    = FindObjectOfType <CandyMachine>();
     popMachine      = FindObjectOfType <PopPopMachine>();
     sprinkleMachine = FindObjectOfType <SprinkleMachine>();
     topieMachine    = FindObjectOfType <TopieMachine>();
     coneMachine     = FindObjectOfType <ConeMachine>();
     audioSource     = GetComponent <AudioSource>();
     gameController  = FindObjectOfType <GameController>();
     pause           = FindObjectOfType <GamePause>();
     trash           = FindObjectOfType <Trash>();
 }