Beispiel #1
0
 /// <summary>
 /// 关闭角色
 /// </summary>
 public virtual void DisableObject()
 {
     OnPersonDisable?.Invoke(this);
     if (gameObject)
     {
         gameObject.SetActive(false);
     }
 }
        /// <summary>
        /// 关闭角色
        /// </summary>
        public virtual void DisableObject()
        {
            OnPersonDisable?.Invoke(this);
            if (gameObject)
            {
//                Debug.Log("隐藏:" + CharacterName);
                gameObject.SetActive(false);
            }
        }