private void CreatureObject_OnDestroy()
 {
     _view.ClearSubscriptions();
     _server.Room.Destroy(_view, _dead ? Constants.Killed : (byte)0);
     _view     = null;
     _stats    = null;
     _movement = null;
 }
Example #2
0
 private void ScriptedAI_OnDestroy()
 {
     _stats    = null;
     _threat   = null;
     _tEntry   = null;
     _target   = null;
     _creature = null;
     _movement = null;
 }
Example #3
0
 private void ScriptedAI_OnInitialize()
 {
     _stats    = _parent.RequiredComponent <StatsMgr>();
     _threat   = _parent.RequiredComponent <ThreatMgr>();
     _movement = _parent.RequiredComponent <MovementGenerator>();
     _tEntry   = new TargetEntry()
     {
         SpellID = _stats.MeleeSkill, Upgrade = 0
     };
 }
 private void CreatureObject_OnInitialize()
 {
     _stats    = GetComponent <StatsMgr>();
     _movement = GetComponent <MovementGenerator>();
 }