예제 #1
0
 public void OnMouseOver()
 {
     hoverbonus = 5;
     if (Input.GetMouseButtonDown(1) && Sc_GameManager.buttonPress == 0)
     {
         Sc_GameManager.click();
         if (aCardIsShowingInfo == false)
         {
             Info();
             print(endPointX);
         }
     }
 }
예제 #2
0
 // Update is called once per frame
 void Update()
 {
     if (Input.GetMouseButtonDown(0) && aCardIsShowingInfo == true)
     {
         Sc_GameManager.click();
         if (showingInfo == true)
         {
             CloseInfo();
         }
     }
     PositionCard();
     if (cardID < 4000 && cardID >= 3000)
     {
         if (curseTimer < 0)
         {
             OnMouseDown();
             battleManager.Draw();
         }
         else
         {
             curseTimer -= 1;
         }
     }
 }