示例#1
0
        void Start()
        {
            controller  = GetComponent <CharacterController>();
            myTransform = transform;
            speed       = GetBaseSpeed();
            rayDistance = controller.height * .5f + controller.radius;
            slideLimit  = controller.slopeLimit - .1f;
            jumpTimer   = antiBunnyHopFactor;
            mainCamera  = GameManager.Instance.MainCamera;

            fakeLevitate = GetComponent <FakeLevitate>();
        }
示例#2
0
 void Start()
 {
     // Wire event for when player enters a new location
     PlayerGPS.OnEnterLocationRect += PlayerGPS_OnEnterLocationRect;
     fakeLevitate = GetComponent <FakeLevitate>();
 }