Example #1
0
 private void UpdateAnim(RobotSphere.RobotSphereState currSphereState)
 {
     if (currSphereState == RobotSphere.RobotSphereState.Idle)
     {
         anim.SetBool("Walk_Anim", false);
     }
     else if (currSphereState == RobotSphere.RobotSphereState.Walk)
     {
         anim.SetBool("Walk_Anim", true);
     }
 }
Example #2
0
 public void Update(RobotSphere.RobotSphereState currSphereState)
 {
     UpdateAnim(currSphereState);
 }