Ejemplo n.º 1
0
        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);
        }
Ejemplo n.º 2
0
 public void StopObservation(NodeAddedEvent e, SpawnTankNode tank, [JoinByTank, Context] SlotNode slot, [JoinByModule, Context] ModuleNode module)
 {
     slot.Entity.AddComponentIfAbsent <EnergyInjectionSlotStopObservationComponent>();
 }