コード例 #1
0
        // Start is called before the first frame update
        void Start()
        {
            var a = GameObjectExtend.FindGameObjectWithMultiTags(true, "enemy");

            UnityEngine.Debug.Log(a);
            a = GameObjectExtend.FindGameObjectWithMultiTags(false, "enemy");
            UnityEngine.Debug.Log(a);
            a = GameObjectExtend.FindGameObjectWithMultiTags(true, "enemy", "player");
            UnityEngine.Debug.Log(a);
            UnityEngine.Debug.Log(a.GetTags().PrintElements());
            UnityEngine.Debug.Log(a.HasTags(true, "player"));
            UnityEngine.Debug.Log(a.HasTags(false, "player"));
            a.RemoveTags("player");
            UnityEngine.Debug.Log(a.HasTags(false, "player"));
        }