Example #1
0
    public override void executeCard()
    {
        VictoryPoints vp         = base.player.GetComponent <VictoryPoints>();
        TokyoCheck    tokyoCheck = base.player.GetComponent <TokyoCheck>();

        vp.addVP(2);

        if (!tokyoCheck.inTokyo())
        {
            foreach (GameObject player2 in base.players)
            {
                TokyoCheck check = player2.GetComponent <TokyoCheck>();
                if (check.inTokyo() && (player2 != base.player))
                {
                    check.leaveTokyo();
                }
            }

            tokyoCheck.enterTokyo();
        }
    }
Example #2
0
 // Start is called before the first frame update
 void Start()
 {
     maxLife    = 10;
     lifePoints = 10;
     tokyoCheck = this.GetComponent <TokyoCheck>();
 }
Example #3
0
 // Start is called before the first frame update
 void Start()
 {
     tokyo   = this.GetComponent <TokyoCheck>();
     mm      = mControl.GetComponent <MainMenuController>();
     players = mm.getPlayerList();
 }