public void AntagCheck(GameObject player) { //TODO This is a hacky fix someone please figure out why the GUI start method runs twice uplinkString = null; SpawnedAntag antag = player.GetComponent <PlayerScript>().mind.GetAntag(); if (antag == null) { return; } string antagName = antag.Antagonist.AntagName; if (antagName != antagSet.AntagName || !isServer) { return; } teleCrystals = initalTeleCrystal; UplinkGenerate(); uplinkLocked = false; PlayerCodeRemind(player); }
/// <summary> /// Remove the antag status from this mind /// </summary> public void RemoveAntag() { Antag = null; }
/// <summary> /// Make this mind a specific spawned antag /// </summary> public void SetAntag(SpawnedAntag newAntag) { Antag = newAntag; ShowObjectives(); }