Exemple #1
0
        public static bool Create()
        {
            if (m_Instance != null && !m_Instance.Deleted)
            {
                return(false);
            }

            m_Instance = new StealableArtifactsSpawner();
            return(true);
        }
Exemple #2
0
        public static bool Remove()
        {
            if (m_Instance == null)
            {
                return(false);
            }

            m_Instance.Delete();
            m_Instance = null;
            return(true);
        }
Exemple #3
0
        public override void OnDelete()
        {
            base.OnDelete();

            if (m_RespawnTimer != null)
            {
                m_RespawnTimer.Stop();
                m_RespawnTimer = null;
            }

            foreach (StealableInstance si in m_Artifacts)
            {
                if (si.Item != null)
                {
                    si.Item.Delete();
                }
            }

            m_Instance = null;
        }
        public override void OnDelete()
        {
            base.OnDelete();

            if (m_RespawnTimer != null)
            {
                m_RespawnTimer.Stop();
                m_RespawnTimer = null;
            }

            for (var index = 0; index < m_Artifacts.Length; index++)
            {
                StealableInstance si = m_Artifacts[index];

                if (si.Item != null)
                {
                    si.Item.Delete();
                }
            }

            m_Instance = null;
        }
Exemple #5
0
 public StealableArtifactsSpawner(Serial serial) : base(serial)
 {
     m_Instance = this;
 }
        public override void OnDelete()
        {
            base.OnDelete();

            if (this.m_RespawnTimer != null)
            {
                this.m_RespawnTimer.Stop();
                this.m_RespawnTimer = null;
            }

            foreach (StealableInstance si in this.m_Artifacts)
            {
                if (si.Item != null)
                    si.Item.Delete();
            }

            m_Instance = null;
        }
        public static bool Remove()
        {
            if (m_Instance == null)
                return false;

            m_Instance.Delete();
            m_Instance = null;
            return true;
        }
        public static bool Create()
        {
            if (m_Instance != null && !m_Instance.Deleted)
                return false;

            m_Instance = new StealableArtifactsSpawner();
            return true;
        }
 public StealableArtifactsSpawner(Serial serial)
     : base(serial)
 {
     m_Instance = this;
 }