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; }
public LaunchSnowballCommand(RemotePenguinSnowballThrower thrower, Vector3 velocity) { this.thrower = thrower; this.velocity = velocity; }
public ChargeSnowballCommand(RemotePenguinSnowballThrower thrower) { this.thrower = thrower; }