标签:deb public sys generic mono ons void find using
代码演示:
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class TagFind : MonoBehaviour {
private GameObject thing;
private GameObject[] things;
void Start (http://www.my516.com) {
things = GameObject.FindGameObjectsWithTag("Player");
thing = GameObject.FindGameObjectWithTag("Player");
Debug.Log(things.Length);
Debug.Log(thing.name);
}
}
---------------------
GameObject.FindGameObjectWithTag()
标签:deb public sys generic mono ons void find using
原文地址:https://www.cnblogs.com/liyanyan665/p/11278031.html