Ejemplo n.º 1
0
 public void Convert(Entity entity, EntityManager dstManager, GameObjectConversionSystem conversionSystem)
 {
     dstManager.AddComponentData(entity, new BossTag());
     // HPの初期化
     dstManager.AddComponentData(entity, new StatusData
     {
         HP = GameManager.Instance.BossManager.BossSettingData.InitialBossHP
     });
     EntityInformation.SetBossEntity(entity);
 }
        public void Convert(Entity entity, EntityManager dstManager, GameObjectConversionSystem conversionSystem)
        {
            // 変換したEntityにプレイヤータグを追加
            dstManager.AddComponentData(entity, new PlayerTag());

            // HPの初期化
            dstManager.AddComponentData(entity, new StatusData
            {
                HP = GameManager.Instance.PlayerManager.PlayerSettingdata.InitialHP
            });

            // EntityInformationに登録
            EntityInformation.SetPlayerEntity(entity);
        }