Advertisement
Guest User

Untitled

a guest
Apr 22nd, 2019
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.62 KB | None | 0 0
  1. using System.Collections;
  2. using System.Collections.Generic;
  3. using UnityEngine;
  4. using UnityEngine.UI;
  5. public class Money : MonoBehaviour
  6. {
  7.    private int score = 0;
  8.     public Text ScoreText;
  9.  
  10.  
  11.     public void vov(int scoremoney)
  12.     {
  13.         score = scoremoney;
  14.     }
  15.     // Start is called before the first frame update
  16.     void Start()
  17.     {
  18.        
  19.  
  20.     }
  21.  
  22.     // Update is called once per frame
  23.     void Update()
  24.     {
  25.        
  26.     }
  27.  
  28.     public void UpCoin(bool f)
  29.     {
  30.         score = score + 5;
  31.         ScoreText.text = score + "" ;
  32.  
  33.         GetComponent<SaveLoad>().Ggdrop(score);
  34.  
  35.     }
  36. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement