C#脚本里写的 public gameobject没有在unity中显示
以下是我的代码行:
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class object_list : MonoBehaviour
{
public static GameObject triangle;
public static GameObject square;
}
运行结果及报错内容
尝试过的方法
去掉static
我想要达到的结果
将gameobject变量赋值