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); } }
public static DragItemAgent GetById(int id) { return(SceneMan.GetSceneObjById(id) as DragItemAgent); }