Example #1
0
 public void Unlock(string flag)
 {
     flags.RemoveFlag(flag);
     if (flags.IsEmpty())
     {
         GetComponent <Collider>().enabled = true;
     }
 }
Example #2
0
 public void Unlock(string flag)
 {
     locker.RemoveFlag(flag);
     if (locker.IsEmpty())
     {
         enabled = true;
     }
 }
Example #3
0
        public void Unlock(string flag)
        {
            lockFlag.RemoveFlag(flag);

            if (lockFlag.IsEmpty() && canvasGroup)
            {
                canvasGroup.blocksRaycasts = true;
            }
        }