Esempio n. 1
0
    public void Hold(Holdable key)
    {
        this.keyBeingHeld  = key;
        key.rb.isKinematic = true;
        key.OnHeldBy(this);

        foreach (var c in key.GetComponentsInChildren <Collider>())
        {
            Physics.IgnoreCollision(cc, c);
        }
    }