Esempio n. 1
0
        /// <summary>
        /// 破棄
        /// 通常はOnDestroy()で呼ぶ
        /// </summary>
        protected override void OnDispose()
        {
            // 破棄
            if (TeamId >= 0)
            {
                TeamData.Dispose(TeamId);

                // チーム削除
                if (MagicaPhysicsManager.IsInstance())
                {
                    MagicaPhysicsManager.Instance.Team.RemoveTeam(teamId);
                }
            }
        }