Exemplo n.º 1
0
    void Start()
    {
        // Get references to other components and game objects
        RigidBody2D = GetComponent <Rigidbody2D>();
        Animator    = GetComponent <Animator>();

        punch = GetComponentInChildren <Punchattack>();
        kick  = GetComponentInChildren <Kickattack>();
        // TODO: Get Animator Reference
    }
Exemplo n.º 2
0
 // Use this for initialization
 void Start()
 {
     punch        = GetComponentInChildren <Punchattack>();
     knives       = GetComponentInChildren <ThrowKnives>();
     followTarget = GetComponent <FollowTarget>();
 }