コード例 #1
0
    public void Initialize()
    {
        uiFloatingTextList = new List <UIFloatingText>();
        uiFloatingTextList = GetComponentsInChildren <UIFloatingText>(true).ToList();

        enemy.Initialize();
        enemy.OnHit += PlayHitParticle;
        enemy.OnHit += PlayShowHPBarForMoment;
        enemy.SetUIFloatingTextList(uiFloatingTextList);
        enemy.InitializeUIFloatingTextList();

        uiHPBar.Initialize();
        uiHPBar.controllingPawn = enemy;
        uiHPBar.SetUpdateHPBarAndAfterImage();
    }
コード例 #2
0
    public void Initialize()
    {
        isFightingOnBattlefield = false;

        InitializeUIFloatingTextList();
        character.Initialize();
        character.OnIsDead += OnHide;
        character.OnHit    += PlayHitParticle;
        character.OnHit    += PlayShowHPBarForMoment;
        character.SetUIFloatingTextList(uiFloatingTextList);
        character.InitializeUIFloatingTextList();

        uiHPBar.Initialize();
        uiHPBar.controllingPawn = character;
        uiHPBar.SetUpdateHPBarAndAfterImage();
    }