Exemplo n.º 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>();
 }
Exemplo n.º 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>();
    }