public void ShowFlag(NodeAddedEvent e, [Combine] FlagIndicatorNode flagIndicator, [Context, JoinByUser] TankNode user, [Context, JoinByTank] CarriedFlagNode flag) { flagIndicator.scoreTableFlagIndicator.SetFlagIconActivity(true); }
public void HideFlag(NodeRemoveEvent e, CarriedFlagNode flag1, [JoinByTank] TankNode user, [JoinByUser] FlagIndicatorNode flagIndicator, CarriedFlagNode flag2, [JoinByTank] ICollection <CarriedFlagNode> flags) { if (flags.Count <= 1) { flagIndicator.scoreTableFlagIndicator.SetFlagIconActivity(false); } }