Skip to content

Commit

Permalink
feat: add play/pause/stop api
Browse files Browse the repository at this point in the history
  • Loading branch information
mob-sakai committed Aug 28, 2020
1 parent 2fa1843 commit f09a386
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions Packages/UIParticle/Scripts/UIParticle.cs
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,21 @@ internal Vector3 cachedPosition
set { _cachedPosition = value; }
}

public void Play()
{
particles.Exec(p => p.Play());
}

public void Pause()
{
particles.Exec(p => p.Pause());
}

public void Stop()
{
particles.Exec(p => p.Stop());
}

public void RefreshParticles()
{
GetComponentsInChildren(particles);
Expand Down

0 comments on commit f09a386

Please sign in to comment.