public override void DrawScene() { GroupRegion group = LvlSystem.GetGroup <GroupRegion>(); if (group == null) { return; } m_Region = group.FindElement(RegionID); }
public override void DrawScene() { NGUITools.DestroyChildren(transform); GroupRegion group = LvlSystem.GetGroup <GroupRegion>(); if (group == null) { return; } m_Region = group.FindElement(RegionID); if (m_Region == null) { return; } GameObject effect = GTResourceManager.Instance.Load <GameObject>(GTPrefabKey.PRE_PORTALEFFECT, true); effect.transform.parent = transform; effect.transform.position = m_Region.transform.position; effect.transform.eulerAngles = m_Region.transform.eulerAngles; }