This question was
closed Dec 16, 2016 at 08:10 PM by
AurimasBlazulionis for the following reason:
Question is not specific enough.
Question by
navtchyev · Dec 16, 2016 at 06:55 PM ·
c#scripting problemscript.moneymoneysystem
money system in c#
using System.Collections;
using UnityEngine.UI;
using System.Collections.Generic;
using UnityEngine;
public class GameOverCon : MonoBehaviour {
[SerializeField]
ScoreCon scorecon;
[SerializeField]
Text txtMoney;
int allMoney;
int Money;
void Start() {
allMoney = Money + scorecon.Score; //take the variable from another script and multiply it in the money that he have now
print(allMoney);
txtMoney.text = allMoney.ToString();
}
}
i can not do it. Plz help !
Comment
Follow this Question
Related Questions
I create material with script but it does not render right 0 Answers
Creating Splines from empties in script 0 Answers
How can i rotate all the child objects together at the same time ? 1 Answer
How can i give another name/number to the created Plane object name ? 0 Answers
How can i check if the alpha color or the material color is transparent ? 1 Answer