Example #1
0
    void PutAwayShield()
    {
        ShieldBehavior shield = transform.Find("Equipment").Find("ShieldSlot").GetChild(0).GetComponent <ShieldBehavior>();

        shield.PutAway();
        shield.GetComponent <Collider>().enabled = false;
    }
Example #2
0
    void DrawShield()
    {
        ShieldBehavior shield = transform.Find("Equipment").Find("ShieldSlot").GetChild(0).GetComponent <ShieldBehavior>();

        shield.DrawShield(transform);
        shield.GetComponent <Collider>().enabled = true;
    }