soundvision/UnityProject/Assets/Scenes/Examples/LevelThreshold/script/ConstructionColumnBehaviour.cs
2019-10-08 22:31:27 +02:00

22 lines
No EOL
431 B
C#

using UnityEngine;
namespace cylvester
{
public class ConstructionColumnBehaviour : MonoBehaviour
{
private int frameCount_;
private void Start()
{
transform.position = new Vector3(Random.Range(-5.0f, 5.0f), 0f, Random.Range(-5.0f, 5.0f));
}
private void Update()
{
frameCount_++;
if(frameCount_ == 60)
Destroy(this.gameObject);
}
}
}