本文整理汇总了C#中AnimationType.ToString方法的典型用法代码示例。如果您正苦于以下问题:C# AnimationType.ToString方法的具体用法?C# AnimationType.ToString怎么用?C# AnimationType.ToString使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类AnimationType
的用法示例。
在下文中一共展示了AnimationType.ToString方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: PlayAnimation
//애니메이션을 재생합니다.
public void PlayAnimation(AnimationType anim) {
m_current = anim;
//초밥 종류에 따라서 애니메이션을 지정합니다.
string animName = m_sushiType.ToString() + "_" + m_current.ToString();
m_animation.Play(animName);
}
示例2: Animation
/// <summary>
/// Cunstructor for normal storyboard commands
/// </summary>
/// <param name="easing"></param>
/// <param name="startTime"></param>
/// <param name="endTime"></param>
/// <param name="startParams"></param>
/// <param name="endParams"></param>
public Animation(AnimationType animationType, int easing, int startTime, int endTime, double[] startParams,
double[] endParams) : base(startTime)
{
this.animationType = animationType;
this.easing = easing;
this.endTime = endTime;
this.startParams = startParams;
this.endParams = endParams;
if (endTime < startTime)
throw new CompilerException(-1, 404, animationType.ToString(), startTime.ToString(), endTime.ToString());
}
示例3: setAnimationTypeAndSubtype
// Sets the animation type and subtype that will be used whenever showing or hiding a view controller
public static void setAnimationTypeAndSubtype( AnimationType type, AnimationSubtype subtype )
{
if( Application.platform != RuntimePlatform.OSXEditor )
{
// convert the types to strings and lowercase the first letter
string aType = type.ToString();
aType = aType.Substring( 0, 1 ).ToLower() + aType.Substring( 1 );
string aSubtype = subtype.ToString();
aSubtype = aSubtype.Substring( 0, 1 ).ToLower() + aSubtype.Substring( 1 );
_nativeToolkitSetAnimationTypeAndSubtype( aType, aSubtype );
}
}
示例4: TryGet
public bool TryGet(AnimationType animationType, out AnimationData animationData)
{
return TryGet(animationType.ToString().ToLower(), out animationData);
}
示例5: Request
public void Request(AnimationType animationType)
{
Request(animationType.ToString().ToLower());
}