Example #1
0
    public void SwitchUnit()
    {
        if (U != null)
        {
            U.Owner = NewFaction;

            U.Alliance = U.GM.ThisGame[NewFaction].Alliance;

            U.SetColor();

            if (thisDialog != null)
            {
                thisDialog.ResetDialog();
                thisDialog.NextLine();
            }

            foreach (GameObject AI in U.GM.AIPlayers)
            {
                if (U.Alliance != AI.GetComponent <Tracker>().Team)
                {
                    AI.GetComponent <Tracker>().Enemies.Add(U.gameObject);
                }
            }

            U.TurnStart();

            U = null;
        }
        else
        {
            return;
        }
    }
Example #2
0
 // Update is called once per frame
 void Update()
 {
     if (Triggered == false)
     {
         if (One.finished == true && Two.finished == true)
         {
             Surprise.Spawn();
             Both.NextLine();
             Triggered = true;
         }
     }
 }
Example #3
0
 public void NextLine()
 {
     dialogEvent.NextLine();
 }
 // Start is called before the first frame update
 void Start()
 {
     D.NextLine();
 }