19 lines
383 B
C#
19 lines
383 B
C#
using RayFire;
|
|
using UnityEngine;
|
|
|
|
public class Block : MonoBehaviour
|
|
{
|
|
RayfireRigid rig;
|
|
void Awake()
|
|
{
|
|
rig = GetComponent<RayfireRigid>();
|
|
rig.meshDemolition.sd = Random.Range(0,int.MaxValue);
|
|
rig.meshDemolition.am = Random.Range(3,16);
|
|
}
|
|
//async void Start()
|
|
//{
|
|
// await Task.Delay(500);
|
|
// rig.Demolish();
|
|
//}
|
|
}
|