Esempio n. 1
0
    public bool CheckKey(InteractableItem key)
    {
        if (Key.Equals(key))
        {
            Unlock();
            return(true);
        }

        return(false);
    }
Esempio n. 2
0
    public bool Trigger(InteractableItem bulbNeeded)
    {
        if (BulbNeeded.Equals(bulbNeeded) && !IsFixed)
        {
            LightObject.SetActive(true);
            IsFixed = true;
            return(true);
        }

        return(false);
    }