Beispiel #1
0
 public void HidePointerWhenFlagHome(NodeAddedEvent e, [Combine] FlagHomeNode flag, SelfBattleUser user, [Context] SingleNode <AlliesFlagPointerComponent> alliesPointer, [Context] EnemyFlagPointerNode enemyPointer, [Context] SingleNode <AlliesBasePointerComponent> alliesBasePointer, [Context] EnemyBasePointer enemyBasePointer)
 {
     if (flag.teamGroup.Key == user.teamGroup.Key)
     {
         alliesPointer.component.Hide();
         alliesBasePointer.component.SetFlagAtHomeState();
     }
     else
     {
         enemyPointer.enemyFlagPointer.Hide();
         enemyBasePointer.enemyBasePointer.SetFlagAtHomeState();
     }
 }
Beispiel #2
0
 public void ChangeBaseIconWhenFlagNotHome(NodeRemoveEvent e, [Combine] FlagHomeNode flag, [JoinByTeam] FlagPedestalNode flagPedestal, [JoinAll] SelfBattleUser user, [JoinAll] SingleNode <AlliesBasePointerComponent> alliesPointer, [JoinAll] EnemyBasePointer enemyPointer)
 {
     this.SetFlagNotHomeIcon(flag, user, alliesPointer, enemyPointer);
 }