Пример #1
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>();
 }
Пример #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>();
    }