Day 1 Finished! Got the bare bones of the game functional. It's basically a game without any polish at the smallest scope possible.
This commit is contained in:
@@ -0,0 +1,30 @@
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
|
||||
public class ObsctaleScript : MonoBehaviour
|
||||
{
|
||||
|
||||
private float deathTime;
|
||||
private float myTime = 0.0f;
|
||||
|
||||
void Start()
|
||||
{
|
||||
|
||||
deathTime = Random.Range(5.0f, 15.0f);
|
||||
|
||||
}
|
||||
|
||||
// Update is called once per frame
|
||||
void Update()
|
||||
{
|
||||
|
||||
myTime += Time.deltaTime;
|
||||
|
||||
if(myTime > deathTime)
|
||||
{
|
||||
Destroy(gameObject);
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user