Пример #1
0
        /// <summary>
        /// 破棄
        /// 通常はOnDestroy()で呼ぶ
        /// </summary>
        public virtual void Dispose()
        {
            // マネージャから削除
            if (MagicaPhysicsManager.IsInstance())
            {
                MagicaPhysicsManager.Instance.Mesh.RemoveMesh(this);
            }

            status.SetDispose();
        }
Пример #2
0
        protected virtual void OnDestroy()
        {
            if (Status.IsDispose)
            {
                return;
            }

            //Debug.Log("Core.OnDestroy():" + gameObject.name);
            status.SetDispose();
            OnDispose();
        }
        protected virtual void OnDestroy()
        {
            if (Status.IsDispose)
            {
                return;
            }

            //Debug.Log("Core.OnDestroy():" + gameObject.name);
            status.SetDispose();
            OnDispose();

            // 登録削除
            if (MagicaPhysicsManager.IsInstance())
            {
                MagicaPhysicsManager.Instance.Component.RemoveComponent(this);
            }
        }
 protected virtual void OnDestroy()
 {
     OnDispose();
     status.SetDispose();
 }