Пример #1
0
    //========================================================

    void Awake()
    {
        if (!instance)
        {
            instance = this;
        }
        characterController = GetComponent <CharacterController>();
    }
Пример #2
0
	void Awake()
    {
        anim = GetComponentInChildren<Animator>();
        anim.animatePhysics = true;
        p_Controls = transform.root.GetComponent<P_Controls>();
        mat = Mrend.material;
        g_Check = FindObjectOfType<P_Ground_Check>();
        animPhysics = FindObjectOfType<Physics_Animation_Blend>();
    }
Пример #3
0
 void Awake()
 {
     anim = GetComponentInChildren <Animator>();
     anim.animatePhysics = true;
     p_Controls          = transform.root.GetComponent <P_Controls>();
     mat         = Mrend.material;
     g_Check     = FindObjectOfType <P_Ground_Check>();
     animPhysics = FindObjectOfType <Physics_Animation_Blend>();
 }
Пример #4
0
	//========================================================

	void Awake(){
		if (!instance)
			instance = this;
		characterController = GetComponent<CharacterController>();
	}