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

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