soundvision/UnityProject/Assets/Scenes/Examples/LevelThreshold/script/ConstructionColumnBehaviour.cs

22 lines
431 B
C#
Raw Permalink Normal View History

2019-10-07 22:03:16 +00:00
using UnityEngine;
namespace cylvester
{
public class ConstructionColumnBehaviour : MonoBehaviour
{
2019-10-08 20:31:27 +00:00
private int frameCount_;
2019-10-07 22:03:16 +00:00
private void Start()
{
2019-10-08 20:31:27 +00:00
transform.position = new Vector3(Random.Range(-5.0f, 5.0f), 0f, Random.Range(-5.0f, 5.0f));
2019-10-07 22:03:16 +00:00
}
private void Update()
{
2019-10-08 20:31:27 +00:00
frameCount_++;
if(frameCount_ == 60)
Destroy(this.gameObject);
2019-10-07 22:03:16 +00:00
}
}
}