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