How Would I Make A Round Based System Like Csgo
I Am Making A unity Game Game And Would Like To Know How To Make A round Based System Like The Round Based System In Csgo? Eg. If All the team terrorists get killed Everyone That Died That Round Will Re spawn Next Round And A Gui Will Tell You its Round 2 etc.
I know its a lot to ask but i really want to progress in the making of game but i just cant seem to find a way to do this :( I Have All the gun models,Code,Levels and level effects And i Have No Clue How To Do This i will give credit in my game to whoever helps me.
By The Way I'm Using Photon Unity Networking And Unity 5.3.1f pro.
Answer by greens356 · Apr 22, 2016 at 03:18 AM
I have a similar question although I am looking to make my round based game the best design possible. As in, is there an easier way to do what I am trying to do.. but..
I am using the unity system time and then based on whether a condition is met or not, then I am determining whether the round increases or not.. For example:
int round;
int roundIntervalTime;
int gameTime;
float timer;
timer = time.deltaTime;
gameTime = (int)System.Math.Floor(timer);
if (gameTime == roundIntervalTime){
round++;
}
Hope this helps get you started. I haven't delved too far into the Canvas/GUI stuff quite yet.