mirror of
https://github.com/Mukheem/TwinTurbine.git
synced 2025-05-10 11:10:35 +02:00
disabling the spawnner script after instantiating
This commit is contained in:
parent
680ce710ab
commit
aadd1f9d06
@ -25,6 +25,7 @@ public class PrefabSpawnner : MonoBehaviour
|
||||
if (OVRInput.GetDown(OVRInput.Button.One))
|
||||
{
|
||||
Instantiate(prefab, hit.point, Quaternion.FromToRotation(Vector3.up, hit.normal));
|
||||
this.gameObject.SetActive(false);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user