// Use this for initialization void Start() { thirdPersonController = GetComponent <ThirdPersonController>(); thirdPersonFlyingController = GetComponent <ThirdPersonFlyingController>(); mouseOrbit = GameObject.Find("LookTarget").GetComponent <MouseOrbit>(); mouseAimFlying = GameObject.Find("LookTarget").GetComponent <MouseFlying>(); //playerLookTarget = GetComponent<PlayerLookTarget>(); headLookController = GetComponent <HeadLookController>(); _lookDirection = thirdPersonController.MoveDirection(); _inAirVelocity = 0.0f; _health = 100; _catsCollected = 0; }
// Use this for initialization void Start() { thirdPersonController = GetComponent<ThirdPersonController>(); thirdPersonFlyingController = GetComponent<ThirdPersonFlyingController>(); mouseOrbit = GameObject.Find("LookTarget").GetComponent<MouseOrbit>(); mouseAimFlying = GameObject.Find("LookTarget").GetComponent<MouseFlying>(); //playerLookTarget = GetComponent<PlayerLookTarget>(); headLookController = GetComponent<HeadLookController>(); _lookDirection = thirdPersonController.MoveDirection(); _inAirVelocity = 0.0f; _health = 100; _catsCollected = 0; }