public void InitCamera(NodeAddedEvent evt, TransitionCameraNode transitionCameraNode, TankNode tank, [JoinByTank, Context] SpawnTankNode spawnTank, [Context, JoinByTank] WeaponNode weapon) { SpawnCameraConfigUnityComponent spawnCameraConfigUnity = transitionCameraNode.spawnCameraConfigUnity; this.InitFollowCamera(transitionCameraNode, weapon, tank, spawnCameraConfigUnity.FlyTimeSec, spawnCameraConfigUnity.FlyHeight); }
public void StopObservation(NodeAddedEvent e, SpawnTankNode tank, [JoinByTank, Context] SlotNode slot, [JoinByModule, Context] ModuleNode module) { slot.Entity.AddComponentIfAbsent <EnergyInjectionSlotStopObservationComponent>(); }