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); } }
public void Update(RobotSphere.RobotSphereState currSphereState) { UpdateAnim(currSphereState); }