// Use this for initialization
    void Awake()
    {
        rb2D   = GetComponent <Rigidbody2D>();
        gm     = GetComponent <GroundedManager>();
        health = GetComponent <PlayerHealth>();
        hand1  = transform.Find("Hand1").GetComponent <Hand>();
        hand2  = transform.Find("Hand2").GetComponent <Hand>();

        linearRot = 0f;
    }
Esempio n. 2
0
 // Use this for initialization
 void Awake()
 {
     gm = GetComponentInParent <GroundedManager>();
 }