using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class Globle{
public static bool zongkongzhi;
public static bool index = true;
}
定义全局脚本,不需要挂在任何物体,可跨场景全局调用
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class Globle{
public static bool zongkongzhi;
public static bool index = true;
}
定义全局脚本,不需要挂在任何物体,可跨场景全局调用
本文标题:unity全局脚本
本文链接:https://www.haomeiwen.com/subject/ulionttx.html
网友评论