// Update is called once per frame void Update() { if (playerEntered == true) { if (InputControls.APressed) { //Player character = GameManager.getPlayer().GetComponent<Player>(); if (this.currentState == BowlState.notMixing) { Instantiate(CSGO); this.currentState = BowlState.currentlyMixing; //START BOWL MINIGAME... } else { Debug.Log("YOU CAN'T MIX WHAT IS ALREADY MIXED"); } } } }
private void miniGame() { miniGameFinished = true; this.currentState = BowlState.currentlyMixing; GameManager.getPlayer().GetComponent <CharacterController2D>().info.heldFood = GameManager.getGameManager().getFood("Cookie"); }
// Use this for initialization void Start() { currentState = BowlState.notMixing; }