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(); } }
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); }