disabling the spawnner script after instantiating

This commit is contained in:
Abdul Mukheem Shaik 2024-05-13 16:03:26 +02:00
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);
}
}
}