private void Play(SpriteAnimation newAnimation) { Current = newAnimation; renderer.sharedMaterial.SetTexture("_MainTex", Current.Texture); renderer.sharedMaterial.SetTextureScale("_MainTex", Current.Scale); _lastFrameTime = Time.time; }
public void StopForce() { _queue.Clear(); Current = null; }
public void Stop() { Current = null; }