"景先生毕设|www.jxszl.com

C# ApplyTween类代码示例

2023-12-29 17:05编辑: www.jxszl.com景先生毕设
本文整理汇总了C#中ApplyTween类的典型用法代码示例。如果您正苦于以下问题:C#ApplyTween类的具体用法?C#ApplyTween怎么用?C#ApplyTween使用的例子?这里精选的类代码示例或许可以为您提供帮助。 示例1:GenerateTargets //callcorrectsettargetmethodandsettweenapplicationdelegate: voidGenerateTargets() { switch(type){ case"value": switch(method){ case"float": GenerateFloatTargets(); apply=newApplyTween(ApplyFloatTargets); break; case"vector2": GenerateVector2Targets(); apply=newApplyTween(ApplyVector2Targets); break; case"vector3": GenerateVector3Targets(); apply=newApplyTween(ApplyVector3Targets); break; case"color": GenerateColorTargets(); apply=newApplyTween(ApplyColorTargets); break; case"rect": GenerateRectTargets(); apply=newApplyTween(ApplyRectTargets); break; } break; case"color": switch(method){ case"to": GenerateColorToTargets(); apply=newApplyTween(ApplyColorToTargets); break; } break; case"audio": switch(method){ case"to": GenerateAudioToTargets(); apply=newApplyTween(ApplyAudioToTargets); break; } break; case"move": switch(method){ case"to": //usingapath? if(tweenArguments.Contains("path")){ GenerateMoveToPathTargets(); apply=newApplyTween(ApplyMoveToPathTargets); }else{//notusingapath? GenerateMoveToTargets(); apply=newApplyTween(ApplyMoveToTargets); } break; case"by": case"add": GenerateMoveByTargets(); apply=newApplyTween(ApplyMoveByTargets); break; } break; case"scale": switch(method){ case"to": GenerateScaleToTargets(); apply=newApplyTween(ApplyScaleToTargets); break; case"by": GenerateScaleByTargets(); apply=newApplyTween(ApplyScaleToTargets); break; case"add": GenerateScaleAddTargets(); apply=newApplyTween(ApplyScaleToTargets); break; } break; case"rotate": switch(method){ case"to": GenerateRotateToTargets(); apply=newApplyTween(ApplyRotateToTargets); break; case"add": GenerateRotateAddTargets(); apply=newApplyTween(ApplyRotateAddTargets); break; case"by": GenerateRotateByTargets(); apply=newApplyTween(ApplyRotateAddTargets); break; } break; case"shake": switch(method){ case"position": GenerateShakePositionTargets(); apply=newApplyTween(ApplyShakePositionTargets); //.........这里部分代码省略.........
原文链接:http://www.jxszl.com/biancheng/C/556561.html