Devlop your game

Make, share and learn.

Saturday, May 9, 2020

Making 3D Shooting game in Unity Guide

Do u want to make your own 3D shooting game. if so then follow along the video to do so. if u have problem with writing scripts then all the scripts are available in this website down below;


Youtube Video





Scripts used in this Video:

Code used in the loading screen:

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.SceneManagement;

public class loadingmanager : MonoBehaviour {

void Start()
{
StartCoroutine (loadingprocess());
}

IEnumerator loadingprocess()
{
yield return new WaitForSeconds (1f);
SceneManager.LoadScene (1);
}
}

Code used in the Menu for button:

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.SceneManagement;

public class menumanagerscript : MonoBehaviour {

public void GameStart()
{
SceneManager.LoadScene (2);
}

public void EndGame()
{
Application.Quit ();
}
}


Make sure that you have the class name matched to make it work. Thank u for visiting.




No comments:

Post a Comment