public bool Unlock() { if (isLocked && m_PlayerController.HasKey(keyType)) { m_PlayerController.UseKey(keyType); isLocked = false; navObstacle.carving = isLocked; navObstacle.enabled = isLocked; doorHandle.SetLock(isLocked); monsterManager.LevelUpMonster(); return(true); } return(false); }