public void Unlock(AgentScript.Team team) { if (_isLocked && team == _teamLocked) { ResetLock(); } }
public void Lock(AgentScript.Team team) { if (_isLocked || _isGrabed) { return; } _isLocked = true; _teamLocked = team; _material.color = team == AgentScript.Team.Hider ? hiderColor : seekerColor; _rBody.isKinematic = true; }