Game controls keybinding - final implementation
This commit is contained in:
parent
ac71c14074
commit
df05408237
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@ -62,6 +62,13 @@ public class BossThug : MonoBehaviour
|
||||
}
|
||||
else if (state == BossThugEnum.Attacking && player.GetComponent<Player>().currentHealth <= 0)
|
||||
{
|
||||
// 3. Save additional controls
|
||||
SkillsUIManager.Instance.keyToOpen = (KeyCode) System.Enum.Parse(typeof(KeyCode), PlayerPrefs.GetString("Skills"));
|
||||
DisplayExpStatus.keyToExp = (KeyCode) System.Enum.Parse(typeof(KeyCode), PlayerPrefs.GetString("EXP HEALTH"));
|
||||
DisplayHealthStatus.keyToHealth = (KeyCode) System.Enum.Parse(typeof(KeyCode), PlayerPrefs.GetString("EXP HEALTH"));
|
||||
DisplayExpStatus.keyToExp = (KeyCode) System.Enum.Parse(typeof(KeyCode), PlayerPrefs.GetString("ExpHlth"));
|
||||
DisplayHealthStatus.keyToHealth = (KeyCode) System.Enum.Parse(typeof(KeyCode), PlayerPrefs.GetString("ExpHlth"));
|
||||
PlayerPrefs.Save();
|
||||
doorway.GetComponent<DoorBehaviour>().ScenetToMoveTo();
|
||||
PlayerPrefs.SetFloat("health-S", 10.0f);
|
||||
PlayerPrefs.SetFloat("health-S", 10.0f);
|
||||
|
Loading…
Reference in New Issue
Block a user