Skip to content
Snippets Groups Projects
Commit 7aa09961 authored by Michael LaFreniere's avatar Michael LaFreniere
Browse files

Main menu->play game-> char creation-> main scene

got a few buttons going (character doesnt transfer over yet)
parent a1723597
No related branches found
No related tags found
No related merge requests found
Showing
with 31 additions and 28 deletions
No preview for this file type
......@@ -47,7 +47,6 @@
<ItemGroup>
<Compile Include="Assets\Scripts\ArenaCombatControl.cs" />
<Compile Include="Assets\Scripts\CameraMovement.cs" />
<Compile Include="Assets\Scripts\CharacterLook.cs" />
<Compile Include="Assets\Scripts\CharacterStats.cs" />
<Compile Include="Assets\Scripts\Collisions.cs" />
<Compile Include="Assets\Scripts\CreateWeapon.cs" />
......@@ -56,6 +55,7 @@
<Compile Include="Assets\Scripts\EnemyAI.cs" />
<Compile Include="Assets\Scripts\EnemyHealth.cs" />
<Compile Include="Assets\Scripts\EnterDoor.cs" />
<Compile Include="Assets\Scripts\MainMenu.cs" />
<Compile Include="Assets\Scripts\PlayerHealth.cs" />
<Compile Include="Assets\Scripts\PlayerMovement.cs" />
<Compile Include="Assets\Scripts\ShopMenu.cs" />
......
No preview for this file type
No preview for this file type
No preview for this file type
using UnityEngine;
using System.Collections;
public class CharacterLook : MonoBehaviour {
/*
* This script will contain integers referring to which sprite to load. This script will be filled out after character creation is over
* */
public int head;
public int body;
public int weapon;
// Use this for initialization
void Start () {
}
// Update is called once per frame
void Update () {
}
}
......@@ -8,7 +8,7 @@ public class EnterDoor : MonoBehaviour {
public string sceneName;
public GameObject player;
public Transform[] spawnPoint;
public static int spawnPointIndex;
public static int spawnPointIndex = 3;
public Text doorText;
//teleporting player when leaving back to the door they initially entered (to target)
......
using UnityEngine;
using System.Collections;
using UnityEngine.SceneManagement;
public class MainMenu : MonoBehaviour {
// Use this for initialization
void Start () {
}
// Update is called once per frame
void Update () {
}
public void OnClickPlay() {
// from main menu 'Play Game' -> character creation screen
SceneManager.LoadScene("characterCreation");
}
public void OnClickDone() {
// from character creation -> first scene of the game
SceneManager.LoadScene("mainScene1");
}
}
fileFormatVersion: 2
guid: 13f47185ab4757947a0e9368c09d9561
timeCreated: 1478906614
guid: a105aa7086ef4ba4ebf587f74748f636
timeCreated: 1478991315
licenseType: Free
MonoImporter:
serializedVersion: 2
......
No preview for this file type
sceneSetups:
- path: Assets/Scenes/blacksmith.unity
- path: Assets/Scenes/mainmenu.unity
isLoaded: 1
isActive: 1
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
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