Exemple #1
0
    void Start()
    {
        // Always call base.Start()
        base.Start();

        this.popcornMovement = GetComponent <PopcornMovement> ();
        this.popcornAttack   = GetComponent <PopcornAttack> ();
    }
Exemple #2
0
 // Use this for initialization
 void Start()
 {
     popcornAttack = transform.GetComponentInParent <PopcornAttack> ();
 }