Пример #1
0
    protected virtual void OnPEDestroy()
    {
        StopAllCoroutines();

        if (null != Runner)
        {
            Runner.InitNetworkLayer(null);
        }

        Pathea.EntityMgr.Instance.Destroy(Id);
        ISceneObjAgent obj = SceneMan.GetSceneObjById(Id);

        if (null != obj)
        {
            SceneMan.RemoveSceneObj(obj);
        }
    }
Пример #2
0
 public static DragItemAgent GetById(int id)
 {
     return(SceneMan.GetSceneObjById(id) as DragItemAgent);
 }