mirror of
https://github.com/ConjureETS/OuijaMTLGJ2016.git
synced 2026-03-24 02:01:06 +00:00
add visual feedback (particles) when player dashes
This commit is contained in:
parent
12925f9e29
commit
2a731d0532
1582
Assets/prefabs/DashParticleSystem.prefab
Normal file
1582
Assets/prefabs/DashParticleSystem.prefab
Normal file
File diff suppressed because it is too large
Load Diff
8
Assets/prefabs/DashParticleSystem.prefab.meta
Normal file
8
Assets/prefabs/DashParticleSystem.prefab.meta
Normal file
@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: eaf32609a10afd24f9a1b314f4287511
|
||||
timeCreated: 1454223393
|
||||
licenseType: Free
|
||||
NativeFormatImporter:
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@ -24,6 +24,8 @@ public class Character : MonoBehaviour
|
||||
|
||||
private Vector3 dashForward;
|
||||
|
||||
private ParticleSystem particleSys;
|
||||
|
||||
public int PlayerID
|
||||
{
|
||||
get { return playerId; }
|
||||
@ -33,6 +35,7 @@ public class Character : MonoBehaviour
|
||||
void Awake()
|
||||
{
|
||||
rb = GetComponent<Rigidbody>();
|
||||
particleSys = GetComponent<ParticleSystem>();
|
||||
}
|
||||
|
||||
void Start()
|
||||
@ -92,6 +95,8 @@ public class Character : MonoBehaviour
|
||||
|
||||
dashRemainingTime = DashCooldown;
|
||||
|
||||
//particleSys.Play();
|
||||
|
||||
StartCoroutine(DashCoroutine());
|
||||
|
||||
return true;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user