Commit 936c9b9b authored by Jordan B Mckenney's avatar Jordan B Mckenney

Fixed abilities

parent dadd9846
fileFormatVersion: 2
guid: f3704368ef4144da495124908430ad4c
timeCreated: 1475816775
licenseType: Free
NativeFormatImporter:
userData:
assetBundleName:
assetBundleVariant:
fileFormatVersion: 2
guid: 0f781884301604d078e1df5cef97ce7c
timeCreated: 1475816735
licenseType: Free
NativeFormatImporter:
userData:
assetBundleName:
assetBundleVariant:
fileFormatVersion: 2
guid: 750bbb01cc4944df48acbe7bc6905465
timeCreated: 1475816749
licenseType: Free
NativeFormatImporter:
userData:
assetBundleName:
assetBundleVariant:
fileFormatVersion: 2
guid: afa3b25f0de7541cb9c01e694f6778e1
timeCreated: 1477008989
licenseType: Free
NativeFormatImporter:
userData:
assetBundleName:
assetBundleVariant:
fileFormatVersion: 2
guid: 7ba8836ef99f24bf39398dfb9009e9d8
timeCreated: 1475816760
licenseType: Free
NativeFormatImporter:
userData:
assetBundleName:
assetBundleVariant:
......@@ -7,7 +7,7 @@ public class Actions : MonoBehaviour {
public GameObject[] abilities = new GameObject[4]; // The array full of the character's abilities
public GameObject currentAbility = null; // Which ability is currently active
private int abilitiesCounter = 0; // A counter which lets you cycle through the abilities
public Image abilitiesImage; // Picture which shows which ability it active
private Image abilitiesImage; // Picture which shows which ability it active
private Color abilityUnusable;
private Color abilityUsable;
......@@ -21,7 +21,8 @@ public class Actions : MonoBehaviour {
private Vector3 LastInput = new Vector2(0, -1);
void Start () {
abilitiesImage = GameObject.FindGameObjectWithTag ("Cycle").GetComponent<Image>();
// Set the initial ability to something so that it's not null
CycleAbility();
......
......@@ -12,14 +12,9 @@ public class FireballMove : MonoBehaviour {
fireRB.velocity = (move * speed);
}
// Update is called once per frame
void Update () {
//fireRB.MovePosition((Vector2)transform.position + move*speed);
}
void OnCollisionEnter2D(Collision2D c){
Destroy (this.gameObject);
Destroy (gameObject);
}
}
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