예제 #1
0
    // Update is called once per frame
    void Update()
    {
        if (Input.GetKeyDown(KeyCode.R))
        {
            Tut_Potion_controls.makePotion(InventoryController.colourNames.Red);
        }

        if (Input.GetKeyDown(KeyCode.B))
        {
            Tut_Potion_controls.makePotion(InventoryController.colourNames.Blue);
        }

        if (Input.GetKeyDown(KeyCode.Y))
        {
            Tut_Potion_controls.makePotion(InventoryController.colourNames.Yellow);
        }

        if (Input.GetKeyDown(KeyCode.G))
        {
            Tut_Potion_controls.makePotion(InventoryController.colourNames.Green);
        }

        if (Input.GetKeyDown(KeyCode.Space))
        {
            turnTick.onTurnTick();
        }
    }
 void throwPotion()
 {
     if (clickedCards[0].thisMaterial.name == "Root")
     {
         tutorialPotionsController.makePotion(Color.red);
     }
     else if (clickedCards[0].thisMaterial.name == "Ore")
     {
         tutorialPotionsController.makePotion(Color.yellow);
     }
     else if (clickedCards[0].thisMaterial.name == "Mushroom")
     {
         tutorialPotionsController.makePotion(Color.blue);
     }
     else if (clickedCards[0].thisMaterial.name == "Herb")
     {
         tutorialPotionsController.makePotion(Color.green);
     }
 }