示例#1
0
 private void Awake()
 {
     dataEntityCollection   = Service.Get <CPDataEntityCollection>();
     locomotionTracker      = GetComponent <LocomotionTracker>();
     locomotionStateSetter  = GetComponent <AvatarLocomotionStateSetter>();
     playerDataHandle       = GetComponent <AvatarDataHandle>();
     positionTimeline       = new PositionTimeline(MaxQueueTimeMS, WarningQueueTimeMS);
     remoteSnowballLauncher = GetComponent <RemotePenguinSnowballThrower>();
     timer        = new Stopwatch();
     eventChannel = new EventChannel(Service.Get <EventDispatcher>());
     eventChannel.AddListener <PlayerActionServiceEvents.LocomotionActionReceived>(onLocomotionAction);
     locomotionEventBroadcaster = GetComponent <LocomotionEventBroadcaster>();
     locomotionEventBroadcaster.OnControlsLocked   += onControlsLocked;
     locomotionEventBroadcaster.OnControlsUnLocked += onControlsUnLocked;
 }
示例#2
0
 public LaunchSnowballCommand(RemotePenguinSnowballThrower thrower, Vector3 velocity)
 {
     this.thrower  = thrower;
     this.velocity = velocity;
 }
示例#3
0
 public ChargeSnowballCommand(RemotePenguinSnowballThrower thrower)
 {
     this.thrower = thrower;
 }