Making some changes for v1.1

This commit is contained in:
2018-04-13 08:16:14 +10:00
parent f6ba424f08
commit 57d4683df8
17 changed files with 276 additions and 16 deletions
+7 -3
View File
@@ -4,14 +4,18 @@ using UnityEngine;
public class Monster : MonoBehaviour {
public int value;
public float lifespan {
set {
//hackfix
StartCoroutine (ReverseDirectionAfter (value / 2));
StartCoroutine (DestroySelfAfter (value));
}
}
Rigidbody2D rigidBody;
void Awake() {
rigidBody = GetComponent<Rigidbody2D> ();
StartCoroutine (ReverseDirectionAfter (2f));
StartCoroutine (DestroySelfAfter (4f));
}
void OnMouseOver() {