Commit a19735f7 authored by DESHON-PC\Deshon's avatar DESHON-PC\Deshon

Lunge Enemy added

parent c3d5d8ba
fileFormatVersion: 2
guid: 662f53d653f63834597b5983de9d8859
timeCreated: 1492125460
licenseType: Free
NativeFormatImporter:
userData:
assetBundleName:
assetBundleVariant:
......@@ -10,7 +10,7 @@ public class Dash : AbstractBehavior {
public float coolDown = 1f;
public float dashforce = 5;
public float holdTime = 0.4f;
public float minVelocity = 0.5f;
public float minVelocity = 0.5f;
private bool _isDashing = false;
private Transform dashMeter;
......@@ -28,8 +28,8 @@ public class Dash : AbstractBehavior {
}
void Start() {
dashMeter = GameObject.FindGameObjectWithTag("DashMeter").transform;
collider = GetComponent<CircleCollider2D>();
// dashMeter = GameObject.FindGameObjectWithTag("DashMeter").transform;
//collider = GetComponent<CircleCollider2D>();
}
void Update() {
......@@ -48,7 +48,7 @@ public class Dash : AbstractBehavior {
void UpdateUI() {
float progress = 1 - ((lastDash - Time.time)/coolDown);
dashMeter.localScale = new Vector2(Mathf.Clamp01(progress), dashMeter.localScale.y);
//dashMeter.localScale = new Vector2(Mathf.Clamp01(progress), dashMeter.localScale.y);
}
// Dash
......
Busing System.Collections;
fileFormatVersion: 2
guid: 017ab18b4c3d0ea43be073a58863ab7a
timeCreated: 1487896683
licenseType: Free
MonoImporter:
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:
[LocalizedFileNames]
Lunge_Attack.cs=@Lunge_Attack.cs,0
fileFormatVersion: 2
guid: 5b3d6d680ead1a941852d0097afe0f49
timeCreated: 1487901782
licenseType: Free
DefaultImporter:
userData:
assetBundleName:
assetBundleVariant:
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment