initial upload
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
using System;
|
||||
using UnityEngine;
|
||||
|
||||
[Serializable]
|
||||
public class createonclick : MonoBehaviour
|
||||
{
|
||||
public bool clicked;
|
||||
|
||||
public Transform spawn;
|
||||
|
||||
public virtual void OnMouseDown()
|
||||
{
|
||||
clicked = !clicked;
|
||||
UnityEngine.Object.Instantiate(spawn, transform.position, transform.rotation);
|
||||
}
|
||||
|
||||
public virtual void Main()
|
||||
{
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user