Showing posts with label tutorial. Show all posts
Showing posts with label tutorial. Show all posts

Saturday, 21 July 2018

Unity Count Down Timer with circular progressbar

Watch Video Tutorial On My Channel

Assets:



White Dotted image is here

Script:

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;

public class Loading : MonoBehaviour {

public Image loading;
public Text timeText;
public int minutes;
public int sec;
int totalSeconds = 0;
int TOTAL_SECONDS = 0;
float fillamount;

void Start ()
{
timeText.text = minutes + " : " + sec;
if (minutes > 0)
totalSeconds += minutes * 60;
if (sec > 0)
totalSeconds += sec;
TOTAL_SECONDS = totalSeconds;
StartCoroutine (second ());
}

void Update ()
{
if (sec == 0 && minutes == 0) {
timeText.text = "Time's Up!";
StopCoroutine (second ());
}
}
IEnumerator second()
{
yield return new WaitForSeconds (1f);
if(sec > 0)
sec--;
if (sec == 0 && minutes != 0) {
sec = 60;
minutes--;
timeText.text = minutes + " : " + sec;
fillLoading ();
StartCoroutine (second ());
}

void fillLoading()
{
totalSeconds--;
float fill = (float)totalSeconds/TOTAL_SECONDS;
loading.fillAmount = fill;
}
}

Sunday, 30 April 2017

Unity3D Tutorial in Urdu / Hindi [10]

Tutorial No. 10


Welcome to unity 3_D video tutorial series in Urdu .

(1) Duration Of Course : 90 MINUTES
(2)Level : Beginners
(3)Total videos :14

These tutorials are created with Unity personnel edition V 5.3.5



Unity3d Tutorials In Hindi -Urdu [ 02 ]


TUTORIAL NO. 2

Introduction - Game Development Course in Urdu

Welcome to unity 3_D video tutorial series in Urdu .

Course Introduction

(1) Duration Of Course : 90 MINUTES
(2)Level : Beginners
(3)Total videos :14
these tutorials are created with Unity personnel edition V 5.3.5

REQUIREMENTS:
Basic Programming Skills of Any Object Oriented Language are Required to take this course .This is a very simple course and all the steps are Explained .

Recommendations:
Watch this Course in HD quality.
Go step by Step and follow each step on your computer.
In case of any Questions Write in Comments.