public Entity AddAnimationCurve(UnityEngine.AnimationCurve newAnimationCurve) { var component = new AnimationCurveComponent(); component.animationCurve = newAnimationCurve; return(AddAnimationCurve(component)); }
public Entity ReplaceAnimationCurve(UnityEngine.AnimationCurve newAnimationCurve) { AnimationCurveComponent component; if (hasAnimationCurve) { WillRemoveComponent(ComponentIds.AnimationCurve); component = animationCurve; } else { component = new AnimationCurveComponent(); } component.animationCurve = newAnimationCurve; return ReplaceComponent(ComponentIds.AnimationCurve, component); }
public Entity ReplaceAnimationCurve(UnityEngine.AnimationCurve newAnimationCurve) { AnimationCurveComponent component; if (hasAnimationCurve) { WillRemoveComponent(ComponentIds.AnimationCurve); component = animationCurve; } else { component = new AnimationCurveComponent(); } component.animationCurve = newAnimationCurve; return(ReplaceComponent(ComponentIds.AnimationCurve, component)); }
public Entity AddAnimationCurve(UnityEngine.AnimationCurve newAnimationCurve) { var component = new AnimationCurveComponent(); component.animationCurve = newAnimationCurve; return AddAnimationCurve(component); }
public Entity AddAnimationCurve(AnimationCurveComponent component) { return AddComponent(ComponentIds.AnimationCurve, component); }
public Entity AddAnimationCurve(AnimationCurveComponent component) { return(AddComponent(ComponentIds.AnimationCurve, component)); }