public void CTFActivation(UpdateEvent e, SelfTankNode tank, [JoinByTank, Combine] MineSlotNode slot, [JoinByModule] MineModuleNode module, [JoinAll] ICollection <SingleNode <FlagPedestalComponent> > flagPedestals, [JoinAll] CTFBattleNode battle) { Vector3 position = tank.hullInstance.HullInstance.transform.position; if (this.HasActivationMine(position, flagPedestals, battle)) { this.EnableActivation(slot.Entity); } else { this.DisableActivation(slot.Entity); } }
public void DMActivation(NodeAddedEvent e, SelfTankNode tank, [Context, JoinByTank, Combine] MineSlotNode slot, [Context, JoinByModule] MineModuleNode module) { this.EnableActivation(slot.Entity); }