private void Awake() { boxCollider = GetComponent <BoxCollider>(); anim = selector.GetComponent <Animator>(); popPopMachine = FindObjectOfType <PopPopMachine>(); pause = FindObjectOfType <GamePause>(); canDrag = true; }
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>(); }