Example #1
0
 void Awake()
 {
     instance = this;
     animator = transform.Find("SK_Snow").GetComponent <Animator>();
     animator.applyRootMotion = false;
     animator.SetLayerWeight(1, 0);
     animator.SetLayerWeight(2, 1.0f);
     State = States.Move;
 }
Example #2
0
 void Awake()
 {
     instance = this;
     animator = transform.Find ("SK_Snow").GetComponent<Animator>();
     animator.applyRootMotion = false;
     animator.SetLayerWeight (1, 0);
     animator.SetLayerWeight (2, 1.0f);
     State = States.Move;
 }