Example #1
0
    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);
        }
    }