-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
160 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
using System.Collections; | ||
using System.Collections.Generic; | ||
using UnityEngine; | ||
|
||
public class ParticleManager : MonoBehaviour | ||
{ | ||
public ParticleSystem respawnEffect; | ||
public ParticleSystem disposeEffect; | ||
public ParticleSystem clearEffect; | ||
|
||
public void PlayRespawnEffect(Vector3 position) | ||
{ | ||
if (respawnEffect != null) | ||
{ | ||
Instantiate(respawnEffect, position, Quaternion.identity).Play(); | ||
} | ||
} | ||
|
||
public void PlayDisposeEffect(Vector3 position) | ||
{ | ||
if (disposeEffect != null) | ||
{ | ||
Instantiate(disposeEffect, position, Quaternion.identity).Play(); | ||
} | ||
} | ||
|
||
public IEnumerator PlayLevelClearEffect(Vector3 position) | ||
{ | ||
if (clearEffect != null) | ||
{ | ||
Instantiate(clearEffect, position, Quaternion.identity).Play(); | ||
} | ||
yield return new WaitForSeconds(1.5f); | ||
} | ||
|
||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 6 additions & 6 deletions
12
ProjectSettings/Packages/com.unity.testtools.codecoverage/Settings.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
{ | ||
"m_Name": "Settings", | ||
"m_Path": "ProjectSettings/Packages/com.unity.testtools.codecoverage/Settings.json", | ||
"m_Dictionary": { | ||
"m_DictionaryValues": [] | ||
} | ||
} | ||
"m_Name": "Settings", | ||
"m_Path": "ProjectSettings/Packages/com.unity.testtools.codecoverage/Settings.json", | ||
"m_Dictionary": { | ||
"m_DictionaryValues": [] | ||
} | ||
} |