Ejemplo n.º 1
0
 // 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");
             }
         }
     }
 }
Ejemplo n.º 2
0
 private void miniGame()
 {
     miniGameFinished  = true;
     this.currentState = BowlState.currentlyMixing;
     GameManager.getPlayer().GetComponent <CharacterController2D>().info.heldFood = GameManager.getGameManager().getFood("Cookie");
 }
Ejemplo n.º 3
0
 // Use this for initialization
 void Start()
 {
     currentState = BowlState.notMixing;
 }