Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Push
Push
  • Loading branch information
aps16104 committed Mar 24, 2020
1 parent ad32e08 commit d8b259f
Show file tree
Hide file tree
Showing 27 changed files with 4,871 additions and 7,844 deletions.
2 changes: 1 addition & 1 deletion RPG/Assets/BattleSystem2.cs
Expand Up @@ -369,7 +369,7 @@ public class BattleSystem2 : MonoBehaviour
if (state == BattleState.WON)
{
dialogueText.text = "Victory!";
SceneManager.LoadScene("2D_3B");
SceneManager.LoadScene("2D_4Battle");
}

else if (state == BattleState.LOST)
Expand Down
8 changes: 7 additions & 1 deletion RPG/Assets/BattleSystem3.cs
Expand Up @@ -47,12 +47,18 @@ public class BattleSystem3 : MonoBehaviour
enemyPrefab.SetActive(true);
enemyUnit = enemyGO.GetComponent<Unit>();


dialogueText.text = "A hostile " + enemyUnit.unitName + " approaches...";

playerHUD.SetHUD(playerUnit);
enemyHUD.SetHUD(enemyUnit);

yield return new WaitForSeconds(.5f);
yield return new WaitForSeconds(1.5f);
dialogueText.text = " I see you are ready to battle me.";

yield return new WaitForSeconds(1.5f);
dialogueText.text = " Time to meet your maker.. literally I made you";
yield return new WaitForSeconds(2.5f);

state = BattleState.PLAYERTURN;
StartCoroutine(PlayerTurn());
Expand Down

0 comments on commit d8b259f

Please sign in to comment.