private void Start() { rodAttack = GetComponent <FishingRodMove>(); umbrellaAttack = GetComponent <UmbrellaMove>(); fireworkAttack = GetComponent <FireworkMove>(); canToggle = true; }
private void Start() { _text = GetComponent <Text>(); switch (element) { case Ellys.CableTrapAmount: traps = GameObject.FindGameObjectWithTag("Player").GetComponent <GnomeTrapControl>(); break; case Ellys.BBQTrapAmount: traps = GameObject.FindGameObjectWithTag("Player").GetComponent <GnomeTrapControl>(); break; case Ellys.Fireworks: firework = GameObject.FindGameObjectWithTag("Player").GetComponent <FireworkMove>(); break; default: break; } }