Skip to content
Snippets Groups Projects
Commit cec563cf authored by Jordan's avatar Jordan
Browse files

Scene organization, bug fixes from scene persistance

parent c912a499
No related branches found
No related tags found
No related merge requests found
Showing
with 14 additions and 6 deletions
File added
fileFormatVersion: 2
guid: 1a6d3a39cf9529f49b50093f7c2d6a21
timeCreated: 1479068086
licenseType: Free
NativeFormatImporter:
userData:
assetBundleName:
assetBundleVariant:
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
......@@ -88,7 +88,7 @@ public class EnemyAI : MonoBehaviour {
// Actions
public void a_attack() {
Debug.Log("attacking");
myAnimator.SetBool("speed", false);
myAnimator.SetFloat("speed", 0f);
myAnimator.SetBool("attack", true);
Enemy.velocity = Vector2.zero;
}
......
......@@ -16,11 +16,11 @@ public class MainMenu : MonoBehaviour {
public void OnClickPlay() {
// from main menu 'Play Game' -> character creation screen
SceneManager.LoadScene("characterCreation");
SceneManager.LoadScene("CharacterCreator");
}
public void OnClickDone() {
// from character creation -> first scene of the game
SceneManager.LoadScene("mainScene1");
SceneManager.LoadScene("Town01");
}
}
......@@ -8,9 +8,9 @@ public class setAppearance : MonoBehaviour {
private static Sprite curFace;
private static Sprite curHead;
private static Sprite curLegs;
private static float curRed;
private static float curGreen;
private static float curBlue;
private static float curRed = 1f;
private static float curGreen = 1f;
private static float curBlue = 1f;
private SpriteRenderer head;
private SpriteRenderer face;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment