Example #1
0
 // Update is called once per frame
 void Update()
 {
     // A Button
     if (Input.GetButtonDown("Fire1"))
     {
         useCardAndDraw(0);
         melee.use();
     }
     // B Button
     else if (Input.GetButtonDown("Fire2"))
     {
         useCardAndDraw(1);
         laser.use();
     }
     // X Button
     else if (Input.GetButtonDown("Fire3"))
     {
         useCardAndDraw(2);
     }
     // Y Button
     else if (Input.GetButtonDown("Jump"))
     {
         useCardAndDraw(3);
     }
 }