This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System.Collections; | |
using System.Collections.Generic; | |
using UnityEngine.UI; | |
using UnityEngine; | |
public class Countdown : MonoBehaviour | |
{ | |
public GameObject ball; | |
public GameObject Canvas; | |
public GameObject Panel; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System.Collections; | |
using System.Collections.Generic; | |
using UnityEngine; | |
using UnityEngine.UI; | |
public class Volume : MonoBehaviour | |
{ | |
public Slider volumeSlider; | |
public AudioSource volumeAudio; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
float timeLeft = 30.0f; | |
void Update() | |
{ | |
timeLeft -= Time.deltaTime; | |
if(timeLeft < 0) | |
{ | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System.Collections; | |
using System.Collections.Generic; | |
using UnityEngine; | |
public class Ball : MonoBehaviour | |
{ | |
public Countdown count; | |
public GameObject myPrefab; | |
public float thrust; | |
public Rigidbody rb; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System.Collections; | |
using System.Collections.Generic; | |
using UnityEngine; | |
public class Blocks : MonoBehaviour { | |
public float thrust; | |
public Rigidbody rbB; | |
public GameObject myPrefab; | |
public Material Mat; | |
public Material[] randomMaterials; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System.Collections; | |
using System.Collections.Generic; | |
using UnityEngine.UI; | |
using UnityEngine; | |
public class Countdown : MonoBehaviour | |
{ | |
public GameObject Canvas; | |
public GameObject Panel; | |
public GameObject SecretPanel; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class Blocks : MonoBehaviour { | |
public float thrust; | |
public Rigidbody rbB; | |
public GameObject myPrefab; | |
public Material Mat; | |
public Material[] randomMaterials; | |
public Transform dropPoint; | |
float x; | |
float z; |
NewerOlder