public void SyncFaceDir(UnityEngine.GameObject obj) { EntityViewModel viewModel = GetEntityView(obj); if (null != viewModel) { viewModel.SyncSpatial(); } }
static public int SyncSpatial(IntPtr l) { try { GameFramework.EntityViewModel self = (GameFramework.EntityViewModel)checkSelf(l); self.SyncSpatial(); pushValue(l, true); return(1); } catch (Exception e) { return(error(l, e)); } }