public void Unlock(string flag) { flags.RemoveFlag(flag); if (flags.IsEmpty()) { GetComponent <Collider>().enabled = true; } }
public void Unlock(string flag) { locker.RemoveFlag(flag); if (locker.IsEmpty()) { enabled = true; } }
public void Unlock(string flag) { lockFlag.RemoveFlag(flag); if (lockFlag.IsEmpty() && canvasGroup) { canvasGroup.blocksRaycasts = true; } }