private static void IncreaseCapacities(CapacityIncreaseMode increaseMode) { int num = 0; int num2 = Mathf.Max((int)((float)TweenManager.maxTweeners * 1.5f), 200); int num3 = Mathf.Max((int)((float)TweenManager.maxSequences * 1.5f), 50); switch (increaseMode) { case CapacityIncreaseMode.TweenersOnly: num += num2; TweenManager.maxTweeners += num2; Array.Resize <Tween>(ref TweenManager._pooledTweeners, TweenManager.maxTweeners); break; case CapacityIncreaseMode.SequencesOnly: num += num3; TweenManager.maxSequences += num3; break; default: num += num2; TweenManager.maxTweeners += num2; TweenManager.maxSequences += num3; Array.Resize <Tween>(ref TweenManager._pooledTweeners, TweenManager.maxTweeners); break; } TweenManager.maxActive = TweenManager.maxTweeners + TweenManager.maxSequences; Array.Resize <Tween>(ref TweenManager._activeTweens, TweenManager.maxActive); if (num > 0) { TweenManager._KillList.Capacity += num; } }
static void IncreaseCapacities(CapacityIncreaseMode increaseMode) { int killAdd = 0; switch (increaseMode) { case CapacityIncreaseMode.TweenersOnly: killAdd += _DefaultMaxTweeners; maxTweeners += _DefaultMaxTweeners; Array.Resize(ref _pooledTweeners, maxTweeners); break; case CapacityIncreaseMode.SequencesOnly: killAdd += _DefaultMaxSequences; maxSequences += _DefaultMaxSequences; break; default: killAdd += _DefaultMaxTweeners; maxTweeners += _DefaultMaxTweeners; maxSequences += _DefaultMaxSequences; Array.Resize(ref _pooledTweeners, maxTweeners); break; } maxActive = maxTweeners; Array.Resize(ref _activeTweens, maxActive); if (killAdd > 0) { _KillList.Capacity += killAdd; } }
private static void IncreaseCapacities(CapacityIncreaseMode increaseMode) { int num = 0; int num2 = Mathf.Max((int)(maxTweeners * 1.5f), 200); int num3 = Mathf.Max((int)(maxSequences * 1.5f), 50); if (increaseMode != CapacityIncreaseMode.TweenersOnly) { if (increaseMode == CapacityIncreaseMode.SequencesOnly) { num += num3; maxSequences += num3; } else { num += num2; maxTweeners += num2; maxSequences += num3; Array.Resize <Tween>(ref _pooledTweeners, maxTweeners); } } else { num += num2; maxTweeners += num2; Array.Resize <Tween>(ref _pooledTweeners, maxTweeners); } maxActive = maxTweeners + maxSequences; Array.Resize <Tween>(ref _activeTweens, maxActive); if (num > 0) { _KillList.Capacity += num; } }
static void IncreaseCapacities(CapacityIncreaseMode increaseMode) { int killAdd = 0; // int increaseTweenersBy = _DefaultMaxTweeners; // int increaseSequencesBy = _DefaultMaxSequences; int increaseTweenersBy = Mathf.Max((int)(maxTweeners * 1.5f), _DefaultMaxTweeners); int increaseSequencesBy = Mathf.Max((int)(maxSequences * 1.5f), _DefaultMaxSequences); switch (increaseMode) { case CapacityIncreaseMode.TweenersOnly: killAdd += increaseTweenersBy; maxTweeners += increaseTweenersBy; Array.Resize(ref _pooledTweeners, maxTweeners); break; case CapacityIncreaseMode.SequencesOnly: killAdd += increaseSequencesBy; maxSequences += increaseSequencesBy; break; default: killAdd += increaseTweenersBy; maxTweeners += increaseTweenersBy; maxSequences += increaseSequencesBy; Array.Resize(ref _pooledTweeners, maxTweeners); break; } // maxActive = Mathf.Max(maxTweeners, maxSequences); maxActive = maxTweeners + maxSequences; Array.Resize(ref _activeTweens, maxActive); if (killAdd > 0) { _KillList.Capacity += killAdd; } }
} // 0x004CB2F0-0x004CB7D0 private static void IncreaseCapacities(CapacityIncreaseMode increaseMode) { } // 0x004CAF30-0x004CB1B0