Esempio n. 1
0
        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;
        }
Esempio n. 2
0
 public static void ShowGround(this EntityComponent entityComponent, GroundData data)
 {
     entityComponent.ShowEntity(typeof(Ground), "Ground", Constant.AssetPriority.GroundAssets, data);
 }