在场景中新建一个C#的CircleShape脚本,并挂载到游戏场景中任何一个游戏物体上,然后打开脚本,并复制以下的代码!!!
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class CircleShape : MonoBehaviour {
public GameObject prefab;//预制体
在场景中新建一个C#的CircleShape脚本,并挂载到游戏场景中任何一个游戏物体上,然后打开脚本,并复制以下的代码!!!
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class CircleShape : MonoBehaviour {
public GameObject prefab;//预制体