Vladkiber

Влад

Apr 2nd, 2020
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.30 KB | None | 0 0
  1. using System.Collections;
  2. using System.Collections.Generic;
  3. using UnityEngine;
  4. using UnityEngine.UI;
  5.  
  6. public class ShopCoin : MonoBehaviour
  7. {
  8.     private static int scoreAmount;
  9.  
  10.     public void OnButtonDown()
  11.     {
  12.         Score2.scoreAmount -= 30;
  13.         Score1.scoreAmount--;
  14.     }
  15. }
Add Comment
Please, Sign In to add comment