Еще в августе 2024г. Сделал эту игру, на тот момент изучал сферу геймдева недели 2, тут вы не найдете шедевра кода using UnityEngine; using UnityEngine.UI; using System.Collections; public class JobOneSysyem : MonoBehaviour { public Text chenaTwoJobs; public Text ZarabotokInMinute; public Text MoneyTxt; public Text JJ; public GameObject TwoPlayer__; public GameObject ThreePlayer; public GameObject FourPlayer; public GameObject FivePlayer; public GameObject VipPlayer; public GameObject OneObject; public GameObject TwoObject; public GameObject FourObject; public GameObject FinalOne; public GameObject FinalTwo; public GameObject FinalThree; public InputField InputField; //INPUT private int i; [Header("Buttons")] public GameObject ButtonTwo; public GameObject ButtonThree; public GameObject ButtonFour; public GameObject ButtonFive; public GameObject ButtonSix; public GameObject CLIKKK; public GameObject TwoFloor_____; public GameObject KUPILLL; public GameObject OneButtons; public GameObject ThreeButtons; public GameObject FourButtons; public GameObject FinalButton; [Header("Player")] public int _MoneyPlayer; public int _ZarabotokInMinuteInt; public int chenaTwoInt_; [Header("SHOOOP")] public GameObject kover; public GameObject TELEVIZOR; public GameObject delButton; public GameObject delButtonTV; public GameObject Kuplena_; public GameObject Kuplena_TV; [Header("CLICKER")] public GameObject SeccutifulToClicker; public GameObject DelCode; [Header("TWO FLOOR")] public Text BuyPleaseTwoFloor; public GameObject TwoFloorObject; private bool TwoFloor = false; private bool vipBuy__ = false; void Start() { i = 1; StartCoroutine(PlusInMoney()); _ZarabotokInMinuteInt = 10; MoneyTxt.text = _MoneyPlayer.ToString(); } void FixedUpdate() { ZarabotokInMinute.text = _ZarabotokInMinuteInt.ToString() + "СЂ"; MoneyTxt.text = _MoneyPlayer.ToString(); } IEnumerator PlusInMoney() { while(true) { yield return new WaitForSeconds(2); _MoneyPlayer += _ZarabotokInMinuteInt; } } public void CupilOneJob() { chenaTwoInt_ = 350; chenaTwoJobs.text = chenaTwoInt_.ToString() + "СЂ"; CLIKKK.SetActive(true); } public void BuyTwoJobs() { if(_MoneyPlayer >= chenaTwoInt_) { _MoneyPlayer -= chenaTwoInt_; TwoPlayer__.SetActive(true); _ZarabotokInMinuteInt += 27; chenaTwoInt_ *= 3; chenaTwoJobs.text = chenaTwoInt_.ToString() + "СЂ"; ButtonTwo.SetActive(false); ButtonThree.SetActive(true); } } public void BuyThreeJHobs() { if(_MoneyPlayer >= chenaTwoInt_) { ThreePlayer.SetActive(true); _MoneyPlayer -= chenaTwoInt_; _ZarabotokInMinuteInt *= 2; chenaTwoInt_ *= 3; chenaTwoJobs.text = chenaTwoInt_.ToString() + "СЂ"; ButtonThree.SetActive(false); ButtonFour.SetActive(true); } } public void BuyFourJobs() { if(_MoneyPlayer >= chenaTwoInt_) { _MoneyPlayer -= chenaTwoInt_; FourPlayer.SetActive(true); _ZarabotokInMinuteInt *= 3; chenaTwoInt_ *= 3; chenaTwoJobs.text = chenaTwoInt_.ToString() + "СЂ"; ButtonFour.SetActive(false); ButtonFive.SetActive(true); } } public void BuyFivePlayer() { if(_MoneyPlayer >= chenaTwoInt_) { _MoneyPlayer -= chenaTwoInt_; FivePlayer.SetActive(true); _ZarabotokInMinuteInt *= 2; chenaTwoInt_ *= 3; chenaTwoJobs.text = chenaTwoInt_.ToString() + "СЂ"; ButtonFive.SetActive(false); ButtonSix.SetActive(true); } } public void BuyTwoFloor() { if(_MoneyPlayer >= 90000) { _MoneyPlayer -= 90000; TwoFloorObject.SetActive(true); TwoFloor = true; Destroy(BuyPleaseTwoFloor); if(vipBuy__ == true) { OneButtons.SetActive(true); } TwoFloor_____.SetActive(false); KUPILLL.SetActive(true); } } public void BuyVIPplayer() { if(_MoneyPlayer >= chenaTwoInt_) { _MoneyPlayer -= chenaTwoInt_; VipPlayer.SetActive(true); _ZarabotokInMinuteInt *= 7; chenaTwoInt_ *= 2; chenaTwoJobs.text = chenaTwoInt_.ToString() + "СЂ"; ButtonSix.SetActive(false); chenaTwoJobs.text = ""; JJ.text = ""; vipBuy__ = true; if(TwoFloor == true) { OneButtons.SetActive(true); } else if (TwoFloor == false) { BuyPleaseTwoFloor.text = "Купите 2 этаж"; } } } public void FlooverONEEE() //ONEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEE { if(_MoneyPlayer >= 40000) { _MoneyPlayer -= 40000; OneObject.SetActive(true); _ZarabotokInMinuteInt *= 3; OneButtons.SetActive(false); ThreeButtons.SetActive(true); } } public void FlooverTHREEEEE() //2 { if(_MoneyPlayer >= 350000) { _MoneyPlayer -= 350000; TwoObject.SetActive(true); _ZarabotokInMinuteInt *= 3; ThreeButtons.SetActive(false); FourButtons.SetActive(true); } } public void FlooverFOOOOUR() //3 { if(_MoneyPlayer >= 1200000) { _MoneyPlayer -= 1200000; FourObject.SetActive(true); _ZarabotokInMinuteInt *= 3; FourButtons.SetActive(false); FinalButton.SetActive(true); } } public void FINAAAAAL() //4 { if(_MoneyPlayer >= 14000000) { _MoneyPlayer -= 14000000; FinalOne.SetActive(true); FinalTwo.SetActive(true); FinalThree.SetActive(true); _ZarabotokInMinuteInt *= 7; FinalButton.SetActive(false); } } public void KoverBuyFromShop() { if(_MoneyPlayer >= 20000) { kover.SetActive(true); _MoneyPlayer -= 20000; delButton.SetActive(false); Kuplena_.SetActive(true); } } public void TVbuyTELEVIZOR() { if(_MoneyPlayer >= 70000) { TELEVIZOR.SetActive(true); _MoneyPlayer -= 70000; delButtonTV.SetActive(false); Kuplena_TV.SetActive(true); } } public void CLICKERS() { _MoneyPlayer += i; } public void INP() { if(InputField.text == "ErmakovCss-9") { _MoneyPlayer += 50000; Destroy(DelCode); } } public void BuyClicker() { if(_MoneyPlayer >= 2500) { SeccutifulToClicker.SetActive(false); _MoneyPlayer -= 2500; } } } CSHARP using UnityEngine; using UnityEngine.UI; using System.Collections; public class JobOneSysyem : MonoBehaviour { public Text chenaTwoJobs; public Text ZarabotokInMinute; public Text MoneyTxt; public Text JJ; public GameObject TwoPlayer__; public GameObject ThreePlayer; public GameObject FourPlayer; public GameObject FivePlayer; public GameObject VipPlayer; public GameObject OneObject; public GameObject TwoObject; public GameObject FourObject; public GameObject FinalOne; public GameObject FinalTwo; public GameObject FinalThree; public InputField InputField; //INPUT private int i; [Header("Buttons")] public GameObject ButtonTwo; public GameObject ButtonThree; public GameObject ButtonFour; public GameObject ButtonFive; public GameObject ButtonSix; public GameObject CLIKKK; public GameObject TwoFloor_____; public GameObject KUPILLL; public GameObject OneButtons; public GameObject ThreeButtons; public GameObject FourButtons; public GameObject FinalButton; [Header("Player")] public int _MoneyPlayer; public int _ZarabotokInMinuteInt; public int chenaTwoInt_; [Header("SHOOOP")] public GameObject kover; public GameObject TELEVIZOR; public GameObject delButton; public GameObject delButtonTV; public GameObject Kuplena_; public GameObject Kuplena_TV; [Header("CLICKER")] public GameObject SeccutifulToClicker; public GameObject DelCode; [Header("TWO FLOOR")] public Text BuyPleaseTwoFloor; public GameObject TwoFloorObject; private bool TwoFloor = false; private bool vipBuy__ = false; void Start() { i = 1; StartCoroutine(PlusInMoney()); _ZarabotokInMinuteInt = 10; MoneyTxt.text = _MoneyPlayer.ToString(); } void FixedUpdate() { ZarabotokInMinute.text = _ZarabotokInMinuteInt.ToString() + "СЂ"; MoneyTxt.text = _MoneyPlayer.ToString(); } IEnumerator PlusInMoney() { while(true) { yield return new WaitForSeconds(2); _MoneyPlayer += _ZarabotokInMinuteInt; } } public void CupilOneJob() { chenaTwoInt_ = 350; chenaTwoJobs.text = chenaTwoInt_.ToString() + "СЂ"; CLIKKK.SetActive(true); } public void BuyTwoJobs() { if(_MoneyPlayer >= chenaTwoInt_) { _MoneyPlayer -= chenaTwoInt_; TwoPlayer__.SetActive(true); _ZarabotokInMinuteInt += 27; chenaTwoInt_ *= 3; chenaTwoJobs.text = chenaTwoInt_.ToString() + "СЂ"; ButtonTwo.SetActive(false); ButtonThree.SetActive(true); } } public void BuyThreeJHobs() { if(_MoneyPlayer >= chenaTwoInt_) { ThreePlayer.SetActive(true); _MoneyPlayer -= chenaTwoInt_; _ZarabotokInMinuteInt *= 2; chenaTwoInt_ *= 3; chenaTwoJobs.text = chenaTwoInt_.ToString() + "СЂ"; ButtonThree.SetActive(false); ButtonFour.SetActive(true); } } public void BuyFourJobs() { if(_MoneyPlayer >= chenaTwoInt_) { _MoneyPlayer -= chenaTwoInt_; FourPlayer.SetActive(true); _ZarabotokInMinuteInt *= 3; chenaTwoInt_ *= 3; chenaTwoJobs.text = chenaTwoInt_.ToString() + "СЂ"; ButtonFour.SetActive(false); ButtonFive.SetActive(true); } } public void BuyFivePlayer() { if(_MoneyPlayer >= chenaTwoInt_) { _MoneyPlayer -= chenaTwoInt_; FivePlayer.SetActive(true); _ZarabotokInMinuteInt *= 2; chenaTwoInt_ *= 3; chenaTwoJobs.text = chenaTwoInt_.ToString() + "СЂ"; ButtonFive.SetActive(false); ButtonSix.SetActive(true); } } public void BuyTwoFloor() { if(_MoneyPlayer >= 90000) { _MoneyPlayer -= 90000; TwoFloorObject.SetActive(true); TwoFloor = true; Destroy(BuyPleaseTwoFloor); if(vipBuy__ == true) { OneButtons.SetActive(true); } TwoFloor_____.SetActive(false); KUPILLL.SetActive(true); } } public void BuyVIPplayer() { if(_MoneyPlayer >= chenaTwoInt_) { _MoneyPlayer -= chenaTwoInt_; VipPlayer.SetActive(true); _ZarabotokInMinuteInt *= 7; chenaTwoInt_ *= 2; chenaTwoJobs.text = chenaTwoInt_.ToString() + "СЂ"; ButtonSix.SetActive(false); chenaTwoJobs.text = ""; JJ.text = ""; vipBuy__ = true; if(TwoFloor == true) { OneButtons.SetActive(true); } else if (TwoFloor == false) { BuyPleaseTwoFloor.text = "Купите 2 этаж"; } } } public void FlooverONEEE() //ONEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEE { if(_MoneyPlayer >= 40000) { _MoneyPlayer -= 40000; OneObject.SetActive(true); _ZarabotokInMinuteInt *= 3; OneButtons.SetActive(false); ThreeButtons.SetActive(true); } } public void FlooverTHREEEEE() //2 { if(_MoneyPlayer >= 350000) { _MoneyPlayer -= 350000; TwoObject.SetActive(true); _ZarabotokInMinuteInt *= 3; ThreeButtons.SetActive(false); FourButtons.SetActive(true); } } public void FlooverFOOOOUR() //3 { if(_MoneyPlayer >= 1200000) { _MoneyPlayer -= 1200000; FourObject.SetActive(true); _ZarabotokInMinuteInt *= 3; FourButtons.SetActive(false); FinalButton.SetActive(true); } } public void FINAAAAAL() //4 { if(_MoneyPlayer >= 14000000) { _MoneyPlayer -= 14000000; FinalOne.SetActive(true); FinalTwo.SetActive(true); FinalThree.SetActive(true); _ZarabotokInMinuteInt *= 7; FinalButton.SetActive(false); } } public void KoverBuyFromShop() { if(_MoneyPlayer >= 20000) { kover.SetActive(true); _MoneyPlayer -= 20000; delButton.SetActive(false); Kuplena_.SetActive(true); } } public void TVbuyTELEVIZOR() { if(_MoneyPlayer >= 70000) { TELEVIZOR.SetActive(true); _MoneyPlayer -= 70000; delButtonTV.SetActive(false); Kuplena_TV.SetActive(true); } } public void CLICKERS() { _MoneyPlayer += i; } public void INP() { if(InputField.text == "ErmakovCss-9") { _MoneyPlayer += 50000; Destroy(DelCode); } } public void BuyClicker() { if(_MoneyPlayer >= 2500) { SeccutifulToClicker.SetActive(false); _MoneyPlayer -= 2500; } } } Считаю для первой игры не плохо
блядь, так бля он же учиться. Ему что только теорию хуярить? нужно же проекты делать, вот он сделал и решил поделиться этим