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>(); }
void Start() { // Wire event for when player enters a new location PlayerGPS.OnEnterLocationRect += PlayerGPS_OnEnterLocationRect; fakeLevitate = GetComponent <FakeLevitate>(); }