コード例 #1
0
ファイル: GamePoor.cs プロジェクト: losuffi/MyFirstGame-Demo
        public void Rem(GameObject obj)
        {
            if (!obj.GetComponent <Self_class>())
            {
                return;
            }
            Pro currentpro = poorspace.Find(alist =>
            {
                return(alist.IsThisId(obj.GetComponent <Self_class>().s_id));
            });

            if (currentpro == null)
            {
                return;
            }
            currentpro.AddObj(obj);
            obj.SetActive(false);
        }