Ejemplo n.º 1
0
        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);
        }
Ejemplo n.º 2
0
 /// <summary>
 /// Remove the antag status from this mind
 /// </summary>
 public void RemoveAntag()
 {
     Antag = null;
 }
Ejemplo n.º 3
0
 /// <summary>
 /// Make this mind a specific spawned antag
 /// </summary>
 public void SetAntag(SpawnedAntag newAntag)
 {
     Antag = newAntag;
     ShowObjectives();
 }