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

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

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