Exemplo n.º 1
0
	//
	//
	private void Start() {
		BIK = GetComponent<BipedIK>();
		Actor = GetComponent<Animator>();
		Act = GetComponent<Animation>();
		//
		if (LeftFootCurve.keys.Length == 0)		{LeftFootCurve = new AnimationCurve(new Keyframe(0f,1f),new Keyframe(1f,0f));}
		if (LeftSoleCurve.keys.Length == 0)		{LeftSoleCurve = new AnimationCurve(new Keyframe(0f,1f),new Keyframe(1f,0f));}
		if (RightFootCurve.keys.Length == 0)	{RightFootCurve = new AnimationCurve(new Keyframe(0f,1f),new Keyframe(1f,0f));}
		if (RightSoleCurve.keys.Length == 0)	{RightSoleCurve = new AnimationCurve(new Keyframe(0f,1f),new Keyframe(1f,0f));}
	}
    // INITIALIZOR
    void Start()
    {
        cc = GetComponent<Rigidbody>();
        anm = GetComponent<Animator>();
        col = GetComponent<CapsuleCollider>();
        cf = GetComponent<ConstantForce>();
        p = GetComponent<Player>();
        ik = GetComponent<BipedIK>();
        // put sword sheathed
        WeaponChanged();

        UpdateSpellUI();
        //Cursor.visible = false;
    }