public bool SexLab_StartAnimation(string name, int stage, int position, bool usingStrappon) { SexLab_StopAnimation(); name = name.ToLower(); Sexlab_Name = name; foreach (Animation_Data animation in SexLab_Animations) { if (animation.name == name) { Sexlab_Playing_Animation = animation; Sexlab_Stage = stage; Sexlab_Position = position; //lets not do this here because the animation is not started yet //it starts playing when stage updates //UpdateSexLabEvent(); return(true); } } Warning_Message?.Invoke(this, new StringArg("Can't find SexLab animation: " + name)); return(false); }
public void SexLab_StopAnimation() { sexLab_running_Event.ForEach(runningEvent => runningEvent.End()); // end old events sexLab_running_Event.Clear(); Sexlab_Playing_Animation = new Animation_Data(); }