Ejemplo n.º 1
0
 public void AddDMUIColor(NodeAddedEvent e, [Combine] BattleUserNode battleUser, [JoinByBattle] DMNode battle, [Context, JoinByBattle] TankBattleUserNode tankBattleUser)
 {
     if (!tankBattleUser.Entity.Id.Equals(battleUser.Entity.Id))
     {
         battleUser.Entity.AddComponent(new ColorInBattleComponent(TeamColor.RED));
     }
 }
Ejemplo n.º 2
0
 public void AddDMUIColor(NodeAddedEvent e, TankBattleUserNode tankBattleUser, [JoinByBattle] DMNode battle)
 {
     tankBattleUser.Entity.AddComponent(new ColorInBattleComponent(TeamColor.BLUE));
 }