Exemple #1
0
    //	public float rotateSpeed = 100.0f;

    //	public int invertPitch = 1;
    //public Transform player;
    //private float pitch = 0.0f,
    //yaw = 0.0f;
    //[NEW]//cache initial rotation of player so pitch and yaw don't reset to 0 before rotating
    //private Vector3 oRotation;

    //[NEW]//
    void Start()
    {
        animator = GetComponent <KH_Animator>();
        //cache original rotation of player so pitch and yaw don't reset to 0 before rotating
        //oRotation = player.eulerAngles;
        //pitch = oRotation.x;
        //yaw = oRotation.y;
    }
Exemple #2
0
 // Use this for initialization
 void Start()
 {
     animator = GetComponent <KH_Animator>();
 }