mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2025-12-21 09:46:02 +08:00
[csharp] Some formatting and docs.
This commit is contained in:
parent
b194dbf2c8
commit
afde649c28
@ -507,10 +507,8 @@ namespace Spine {
|
||||
/// for a track. If the track is empty, it is equivalent to calling <see cref="SetAnimation"/>.</summary>
|
||||
/// <param name="delay">
|
||||
/// delay Seconds to begin this animation after the start of the previous animation. If <= 0, uses the duration of the
|
||||
/// previous track entry minus any mix duration (from the <see cref="AnimationStateData"/>) plus the
|
||||
/// specified<code>delay</code> (ie the mix ends at (<code>delay</code> = 0) or before (<code>delay</code> < 0) the previous
|
||||
/// track entry duration). If the previous entry is looping, its next loop completion is used
|
||||
/// instead of the duration.
|
||||
/// previous track entry minus any mix duration plus the specified<code>delay</code>.If the previous entry is
|
||||
/// looping, its next loop completion is used instead of the duration.
|
||||
/// </param>
|
||||
/// <returns>A track entry to allow further customization of animation playback. References to the track entry must not be kept
|
||||
/// after <see cref="AnimationState.Dispose"/></returns>
|
||||
@ -777,7 +775,7 @@ namespace Spine {
|
||||
///<summary>
|
||||
/// Seconds to postpone playing the animation. When a track entry is the current track entry, delay postpones incrementing
|
||||
/// the track time. When a track entry is queued, delay is the time from the start of the previous animation to when the
|
||||
/// track entry will become the current track entry. <see cref="TrackEntry.TimeScale"/> affects the delay.</summary>
|
||||
/// track entry will become the current track entry.</summary>
|
||||
public float Delay { get { return delay; } set { delay = value; } }
|
||||
|
||||
/// <summary>
|
||||
@ -837,15 +835,8 @@ namespace Spine {
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Multiplier for the delta time when the animation state is updated, causing time for all animations and mixes to play slower or
|
||||
/// Multiplier for the delta time when the animation state is updated, causing time for this animation to play slower or
|
||||
/// faster. Defaults to 1.
|
||||
///
|
||||
/// <see cref="TrackEntry.MixTime"/> is not affected by track entry time scale, so <see cref="TrackEntry.MixDuration"/> may need to
|
||||
// be adjusted to match the animation speed.
|
||||
///
|
||||
/// When using <see cref="AnimationState.AddAnimation(int, Animation, boolean, float)"> with a <code>delay</code> <= 0, note the
|
||||
/// {<see cref="TrackEntry.Delay"/> is set using the mix duration from the <see cref="AnimationStateData"/>, assuming time scale to be 1. If
|
||||
/// the time scale is not 1, the delay may need to be adjusted.
|
||||
/// </summary>
|
||||
public float TimeScale { get { return timeScale; } set { timeScale = value; } }
|
||||
|
||||
@ -899,8 +890,7 @@ namespace Spine {
|
||||
/// In that case, the mixDuration must be set before <see cref="AnimationState.Update(float)"/> is next called.
|
||||
/// <para>
|
||||
/// When using <seealso cref="AnimationState.AddAnimation(int, Animation, bool, float)"/> with a
|
||||
/// <code>delay</code> less than or equal to 0, note the <seealso cref="Delay"/> is set using the mix duration from the <see cref=" AnimationStateData"/>,
|
||||
/// not a mix duration set afterward.
|
||||
/// <code>delay</code> less than or equal to 0, note the <seealso cref="Delay"/> is set using the mix duration from the <see cref=" AnimationStateData"/>
|
||||
/// </para>
|
||||
///
|
||||
/// </summary>
|
||||
|
||||
@ -82,8 +82,8 @@ namespace Spine {
|
||||
version++;
|
||||
}
|
||||
|
||||
public void GrowIfNeeded (int newCount) {
|
||||
int minimumSize = Count + newCount;
|
||||
public void GrowIfNeeded (int addedCount) {
|
||||
int minimumSize = Count + addedCount;
|
||||
if (minimumSize > Items.Length)
|
||||
Capacity = Math.Max(Math.Max(Capacity * 2, DefaultCapacity), minimumSize);
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user