本文整理汇总了C#中PlayMode类的典型用法代码示例。如果您正苦于以下问题:C# PlayMode类的具体用法?C# PlayMode怎么用?C# PlayMode使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
PlayMode类属于命名空间,在下文中一共展示了PlayMode类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C#代码示例。
示例1: OnReset
public override void OnReset()
{
targetGameObject = null;
animationName.Value = "";
fadeLength = 0.3f;
playMode = PlayMode.StopSameLayer;
}
开发者ID:dev-celvin,项目名称:DK,代码行数:7,代码来源:CrossFade.cs
示例2: OnReset
public override void OnReset()
{
targetGameObject = null;
animationName.Value = "";
queue = QueueMode.CompleteOthers;
playMode = PlayMode.StopSameLayer;
}
开发者ID:dev-celvin,项目名称:DK,代码行数:7,代码来源:PlayQueued.cs
示例3: Game
public Game(string filename, PlayMode playMode, int top, int left, int mgotop, int mgoleft)
: this(filename, playMode, mgotop, mgoleft)
{
this.top = top;
this.left = left;
this.FormBorderStyle = FormBorderStyle.None;
}
开发者ID:andihit,项目名称:littleRunner,代码行数:7,代码来源:Game.cs
示例4: ExtensionSettings
/// <summary>
/// Constructor which gets all data
/// </summary>
/// <param name="name">Extension</param>
/// <param name="playMode">PlayMode</param>
/// <param name="arguments">Arguments</param>
/// <param name="extPlayerUse">Use in external player</param>
public ExtensionSettings(String name, PlayMode playMode, String arguments, bool extPlayerUse)
{
Name = name;
PlayMode = playMode;
Arguments = arguments;
ExtPlayerUse = extPlayerUse;
}
开发者ID:MisterD81,项目名称:MyMPlayer,代码行数:14,代码来源:ExtensionSettings.cs
示例5: Play
/// <summary>
/// Will start animation with name animation. The animation will be played abruptly without any blending.<br/>
/// </summary>
/// <param name="name">The name of animation clip you want to play.</param>
/// <param name="mode">How the other animations will stopped?</param>
/// <returns>Will return false if animation can't be played (no animation clip).</returns>
/// <remarks>
/// If mode is PlayMode.StopSameLayer then all animations in the same layer will be stopped. If mode is PlayMode.StopAll then all animations currently playing will be stopped.<br/>
/// If the animation is already playing, other animations will be stopped but the animation will not rewind to the beginning.<br/>
/// If the animation is not set to be looping it will be stopped and rewinded after playing.<br/>
/// </remarks>
public bool Play(string name, PlayMode mode)
{
SpriteAnimationState state = this[name];
if (state != null)
{
//stop other state with playmode
{
if (mode == PlayMode.StopAll)
StopAllExcept(state);
else
StopLayerExcept(state.layer, state);
}
if (state.enabled)
return true;
state.lastTime = state.time = state.speed > 0 ? 0f : state.length;
state.weight = 1f;
state.enabled = true;
state.lastFrameIndex = -1;
state.lastEvaluateTime = 0;
return true;
}
return false;
}
开发者ID:WaylandGod,项目名称:EasyMotion2D.Runtime,代码行数:43,代码来源:SpriteAnimation_PlaybackControl.cs
示例6: Sample
public Sample(string name, int startFrame, int endFrame, PlayMode playMode)
{
this.name = name;
this.startTime = (startFrame - 1) / animationFPS;
this.endTime = (endFrame - 1) / animationFPS;
this.playMode = playMode;
}
开发者ID:tpb3d,项目名称:TPB3D,代码行数:7,代码来源:Sample.cs
示例7: Reset
public override void Reset () {
gameObject = new ConcreteGameObjectVar(this.self);
animationName = new ConcreteStringVar();
fadeLength = .3f;
queue = QueueMode.CompleteOthers;
playMode = PlayMode.StopSameLayer;
}
开发者ID:xclouder,项目名称:godbattle,代码行数:7,代码来源:CrossFadeQueuedAnimation.cs
示例8: Play
/// <summary>
/// Will start the default animation. The animation will be played abruptly without any blending.<br/>
/// </summary>
/// <param name="mode">How the other animations will stopped?</param>
/// <returns>Will return false if animation can't be played (no default animation).</returns>
/// <remarks>
/// If mode is PlayMode.StopSameLayer then all animations in the same layer will be stopped. If mode is PlayMode.StopAll then all animations currently playing will be stopped.<br/>
/// If the animation is already playing, other animations will be stopped but the animation will not rewind to the beginning.<br/>
/// If the animation is not set to be looping it will be stopped and rewinded after playing.<br/>
/// </remarks>
public bool Play(PlayMode mode)
{
if ( clip == null )
return false;
return Play(clip.name, mode);
}
开发者ID:WaylandGod,项目名称:EasyMotion2D.Runtime,代码行数:17,代码来源:SpriteAnimation_PlaybackControl.cs
示例9: OnReset
public override void OnReset()
{
if (animationName != null) {
animationName.Value = "";
}
playMode = PlayMode.StopSameLayer;
}
开发者ID:TrojanFighter,项目名称:U3D-DesignerBehaviorTest1,代码行数:7,代码来源:Play.cs
示例10: World
// new world with the editor
private World(PlayMode playMode)
{
this.PlayMode = playMode;
this.viewport = new GamePoint(0, 0);
if (playMode == PlayMode.Editor)
mainGameObject = new NullMGO();
}
开发者ID:andihit,项目名称:littleRunner,代码行数:9,代码来源:World.cs
示例11: OnReset
public override void OnReset()
{
if (animationName != null) {
animationName.Value = "";
}
queue = QueueMode.CompleteOthers;
playMode = PlayMode.StopSameLayer;
}
开发者ID:TrojanFighter,项目名称:U3D-DesignerBehaviorTest1,代码行数:8,代码来源:PlayQueued.cs
示例12: Reset
public override void Reset()
{
gameObject = null;
animName = null;
playMode = PlayMode.StopAll;
blendTime = 0.3f;
finishEvent = null;
stopOnExit = false;
}
开发者ID:CodeStrumpet,项目名称:Elemental,代码行数:9,代码来源:PlayAnimation.cs
示例13: Close_Click
private void Close_Click(object sender, RoutedEventArgs e)
{
Mode = (PlayMode)ModeBox.SelectedItem;
if (isNameChanged)
MyName = NameTb.Text;
else MyName = "WinDev";
DialogResult = true;
this.Close();
}
开发者ID:milotiger,项目名称:Gomoku,代码行数:9,代码来源:ModePicker.xaml.cs
示例14: GetRuleset
public static Ruleset GetRuleset(PlayMode mode)
{
Type type;
if (!availableRulesets.TryGetValue(mode, out type))
return null;
return Activator.CreateInstance(type) as Ruleset;
}
开发者ID:yheno,项目名称:osu,代码行数:9,代码来源:Ruleset.cs
示例15: getModeIcon
private FontAwesome getModeIcon(PlayMode mode)
{
switch (mode)
{
default: return FontAwesome.fa_osu_osu_o;
case PlayMode.Taiko: return FontAwesome.fa_osu_taiko_o;
case PlayMode.Catch: return FontAwesome.fa_osu_fruits_o;
case PlayMode.Mania: return FontAwesome.fa_osu_mania_o;
}
}
开发者ID:yheno,项目名称:osu,代码行数:10,代码来源:ToolbarModeButton.cs
示例16: ModePicker
public ModePicker()
{
InitializeComponent();
foreach (var item in Enum.GetValues(typeof (PlayMode)))
{
ModeBox.Items.Add(item);
}
ModeBox.SelectedIndex = 0;
Mode = (PlayMode)ModeBox.SelectedItem;
}
开发者ID:milotiger,项目名称:Gomoku,代码行数:10,代码来源:ModePicker.xaml.cs
示例17: FindRestrictedCards
public static IEnumerable<IMultiCard> FindRestrictedCards(IEnumerable<IMultiCard> cardsToCheck, PlayMode playMode)
{
if (cardsToCheck == null)
{
return new List<IMultiCard>();
}
return playMode == PlayMode.Standard
? cardsToCheck.Where(c => RestrictedCardsStandard.Contains(c.Name.ToUpperInvariant())).ToArray()
: cardsToCheck.Where(c => RestrictedCardsCataclysm.Contains(c.Name.ToUpperInvariant())).ToArray();
}
开发者ID:Sigurdur42,项目名称:OCTGN.ImportFromDeckbox.Plugin,代码行数:11,代码来源:RestrictedListCheck.cs
示例18: Reset
public override void Reset()
{
gameObject = null;
animations = new FsmString[0];
weights = new FsmFloat[0];
playMode = PlayMode.StopAll;
blendTime = 0.3f;
finishEvent = null;
loopEvent = null;
stopOnExit = false;
}
开发者ID:jegan27,项目名称:Orbit,代码行数:11,代码来源:PlayRandomAnimation.cs
示例19: Start
// Use this for initialization
void Start() {
if(PlayerPrefs.HasKey("lastSortMode")) {
sortMode = (SortMode)PlayerPrefs.GetInt("lastSortMode");
}
if(sortMode == SortMode.SearchRelevance) {
sortMode = SortMode.Alphabetic;
}
if(PlayerPrefs.HasKey("lastPlayMode")) {
mode = (PlayMode)PlayerPrefs.GetInt("lastPlayMode");
}
}
开发者ID:wfowler1,项目名称:Miscellaneous-Soundboards,代码行数:12,代码来源:Daemon.cs
示例20: SetAtlas
public void SetAtlas(int _rowCount ,int _colCount ,int _rowNumber ,int _colNumber)
{
canPlay = true;
playMode = PlayMode.still;
rowCount = _rowCount;
colCount = _colCount;
rowNumber = _rowNumber;
colNumber = _colNumber;
totalCells = _colCount * _rowCount;
fps = 10;
StartCoroutine("SetSpriteAnimation");
}
开发者ID:kaluluosi,项目名称:Quad-1,代码行数:12,代码来源:AtlasManager.cs
注:本文中的PlayMode类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论