void Start() { // Always call base.Start() base.Start(); this.popcornMovement = GetComponent <PopcornMovement> (); this.popcornAttack = GetComponent <PopcornAttack> (); }
// Use this for initialization void Start() { popcornAttack = transform.GetComponentInParent <PopcornAttack> (); }