tag常用于获取引用的object或其包含的组件
创建一个脚本DoneTags用于定义tag常量(已在DoneScripts下UnappliedScript里),方便以后使用
创建一个脚本DoneTags用于定义tag常量(已在DoneScripts下UnappliedScript里),方便以后使用
using UnityEngine;
using System.Collections;
public class DoneTags : MonoBehaviour
{
// A list of tag strings.
public const string player = "Player";
public const string alarm = "AlarmLight";
public const string siren = "Siren";
public const string gameController = "GameController";
public const string mainLight = "MainLight";
public const string fader = "Fader";
public const string enemy = "Enemy";
}