add visual feedback (particles) when player dashes

This commit is contained in:
jparent 2016-01-31 03:25:35 -05:00
parent 12925f9e29
commit 2a731d0532
3 changed files with 1595 additions and 0 deletions

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: eaf32609a10afd24f9a1b314f4287511
timeCreated: 1454223393
licenseType: Free
NativeFormatImporter:
userData:
assetBundleName:
assetBundleVariant:

View File

@ -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;