private void Start() { p1 = player1.GetPlayer(); p2 = player2.GetPlayer(); AddObservers(); sharedInstance = this; }
/// <summary> /// Sets the backup cards of the specified player to be targetable. /// This gives the misisng backup cards a placeholder block. /// </summary> /// <param name="player"></param> /// <param name="val"></param> public void SetTargetable(PlayerManager player, bool val) { SoldierDefenseGroup targetPlayer = player == player1.GetPlayer() ? player1 : player2; targetPlayer.SetTargetableAll(val); }