Esempio n. 1
0
 public void Start()
 {
     if (motionTracker == null)
     {
         motionTracker = SceneRefs.ZoneLocalPlayerManager.LocalPlayerGameObject.GetComponent <MotionTracker>();
     }
 }
Esempio n. 2
0
 protected override void awake()
 {
     waterLayer              = LayerMask.NameToLayer(LayerConstants.WaterLayer);
     raycastLayerMask        = LayerConstants.GetTubeLayerCollisionMask();
     motion                  = GetComponent <MotionTracker>();
     isLocalPlayer           = base.gameObject.CompareTag("Player");
     thisTransform           = base.transform;
     ToRaceController        = false;
     mutableData             = instantiateData();
     minSpeedForFastLoopAnim = Mathf.Max(mutableData.MinSpeedForSlowLoopAnim, mutableData.MinSpeedForFastLoopAnim);
     minMagnitudeForBumpSq   = mutableData.MinMagnitudeForBump * mutableData.MinMagnitudeForBump;
     jumpRequest             = new ActionRequest(PenguinUserControl.DefaultActionRequestBufferTime, animator, AnimationHashes.Params.Jump);
     base.enabled            = false;
 }