protected override void OnShow(object userData) { base.OnShow(userData); m_GroundData = userData as GroundData; if (m_GroundData == null) { Log.Error("Ground object data is invalid."); return; } transform.localPosition = m_GroundData.GroundPosition; }
public static void ShowGround(this EntityComponent entityComponent, GroundData data) { entityComponent.ShowEntity(typeof(Ground), "Ground", Constant.AssetPriority.GroundAssets, data); }