Skip to content
Snippets Groups Projects
Commit ce3758ae authored by mitchelkovacs's avatar mitchelkovacs
Browse files

less enemies and platfroms

parents a57578b8 4fd2c88a
No related branches found
No related tags found
No related merge requests found
No preview for this file type
No preview for this file type
using UnityEngine;
using System.Collections;
using UnityEngine.SceneManagement;
using UnityEngine.UI;
public class Prefight : MonoBehaviour {
public int time;
public Text playerName;
public Text enemyName;
private PlayerStats player;
private setEnemyAppearance enemy;
// Use this for initialization
void Start () {
}
// Update is called once per frame
void Update () {
if (time > 0) {
void Start() {
player = GameObject.Find("ShopPlayer").GetComponent<PlayerStats>();
enemy = GameObject.Find("Enemy").GetComponent<setEnemyAppearance>();
}
// Update is called once per frame
void Update () {
playerName.text = PlayerStats.playerName;
enemyName.text = setEnemyAppearance.enemyName;
if (time > 0) {
time--;
}
else {
......
No preview for this file type
No preview for this file type
sceneSetups:
- path: Assets/Scenes/PreFight.unity
- path: Assets/Scenes/Town01.unity
isLoaded: 1
isActive: 1
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