public void CmdTaskOpen(GameObject task) { GameTask t = task.GetComponent <GameTask>(); if (NetworkTime.time < (IsHunter ? t.LastHunterOpened + t.HunterCooldown : t.LastVictimOpened + t.VictimCooldown)) { return; } if (t.OnTaskOpen(this)) { CurrentTask = t; TargetSetTask(connectionToClient, task); } }