Small changes
- Gabi Zorek
- Feb 21, 2021
- 1 min read
So this week I hoped to get more done than I did but I was so ill and all I have managed to do is a simple start screen, it consists of just three buttons. The only one that works at the moment is just the play button. I will make this look more appealing as it’s just a black screen with three white buttons at the moment, but it does what it needs to do for the time being.
This is the code:
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.SceneManagement;
public class PlayButton : MonoBehaviour
{
public void PlayGameButton()
{
SceneManager.LoadScene(SceneManager.GetActiveScene().buildIndex + 1);
}
}
It basically just gets the next scene in the build list and takes the player to that! The other two button I have don’t work yet however there will be a settings button which will have the instructions of the game, how to play the game, how to control the player, how to shoot, etc. The last button will just be a quit button where the player can quit the game and the build will close.

Comments