コード例 #1
0
 // Hitting any enemy will trigger this and change the current display, the display will last 20 seconds then it will disappear
 public static void ChangeTarget(IndicatorInfo newinfo)
 {
     instance.info = newinfo;
     instance.ClearTarget();
 }
コード例 #2
0
 public void ClearTargetLate()
 {
     info = null;    //Setting display to target to null so OnGUI is stopped
 }
コード例 #3
0
        protected override void Start()
        {
            base.Start();
            info      = gameObject.AddComponent <IndicatorInfo>();
            info.hp   = this;
            info.Male = true;

            string n = "";

            if (ai.pale)
            {
                n += "PALE ";
                if (ai.skinned)
                {
                    n = "SKINNED ";
                }
            }
            if (ai.painted)
            {
                n += "PAINTED  ";
            }
            if (ai.male)
            {
                n += "MALE ";
            }
            if (ai.creepy_male)
            {
                n += "ARMSY ";
            }
            if (ai.maleSkinny)
            {
                n += "SKINNY MALE ";
            }
            if (ai.female)
            {
                n        += "FEMALE ";
                info.Male = false;
            }
            if (ai.femaleSkinny)
            {
                n        += "SKINNY FEMALE ";
                info.Male = false;
            }
            if (ai.creepy)
            {
                n        += "VIRGINIA ";
                info.Male = false;
            }
            if (ai.creepy_baby)
            {
                n += "BABY";
            }
            if (ai.creepy_fat)
            {
                n += "FATMAN ";
            }
            if (ai.fireman)
            {
                n += "FIREMAN ";
            }
            if (ai.leader)
            {
                n += "LEADER ";
            }



            info.MutantName = n;
        }