Create basic Story classes and parameterize monsters in Battle scene
This commit is contained in:
parent
6181a7d50c
commit
0d7f4f4954
17 changed files with 268 additions and 48 deletions
16
Assets/Battle/BattleSetup.cs
Normal file
16
Assets/Battle/BattleSetup.cs
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
using UnityEngine.SceneManagement;
|
||||
|
||||
public class BattleSetup {
|
||||
private static BattleParameters sParameters;
|
||||
|
||||
public static void StartBattle(BattleParameters parameters) {
|
||||
sParameters = parameters;
|
||||
SceneManager.LoadScene("BattleScene");
|
||||
}
|
||||
|
||||
public static BattleParameters RetrieveParameters() {
|
||||
BattleParameters result = sParameters;
|
||||
sParameters = null;
|
||||
return result;
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue