//Update/////////////////////////////////// void Update() { _currentState.Update(); if (Input.GetKeyDown(KeyCode.P)) { Debug.Log("DeletedPlaye prefs"); PlayerPrefs.DeleteAll(); } if (Input.GetKeyDown(KeyCode.O)) { Debug.Log(PlayerPrefs.GetInt("Quest1")); } }
// Update is called once per frame void Update() { Move(); // Preform whatever actions we need to do in Update based on our current state currentState.Update(this); //Attack(); if (Input.GetKeyDown(KeyCode.F1)) { SetState(playerStateGuitar); } if (Input.GetKeyDown(KeyCode.F2)) { SetState(playerStateRecord); } if (Input.GetKeyDown(KeyCode.F3)) { SetState(playerStateTrumpet); } }