Santi
3111305a83
Timer: Created a universal timer Colours: Improved Comments, cubes now randomly appear on start. When a cube is in a container it gets randomly teleported back
20 lines
440 B
C#
20 lines
440 B
C#
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
|
|
public class BoxSpawns : MonoBehaviour
|
|
{
|
|
//*Start is called before the first frame update
|
|
void Start()
|
|
{
|
|
//*Randomly spawn boxes when the game starts
|
|
gameObject.transform.position = new Vector3(Random.Range(10, -10), 15, Random.Range(-10, 10));
|
|
}
|
|
|
|
//*Update is called once per frame
|
|
void Update()
|
|
{
|
|
|
|
}
|
|
}
|