private void openCloset()
 {
     if (closetControl.IsClosed)
     {
         closetControl.ServerToggleCupboard();
     }
 }
Пример #2
0
    public void CmdToggleCupboard(GameObject cupbObj)
    {
        ClosetControl closet = cupbObj.GetComponent <ClosetControl>();

        if (playerScript.canNotInteract())
        {
            return;
        }
        if (playerScript.IsInReach(cupbObj) || closet.Contains(this.gameObject))
        {
            closet.ServerToggleCupboard();
        }
    }
Пример #3
0
    public void CmdToggleCupboard(GameObject cupbObj)
    {
        ClosetControl closetControl = cupbObj.GetComponent <ClosetControl>();

        closetControl.ServerToggleCupboard();
    }