public async UniTask ThinkStartAsync(MasterData.Skill.SkillMaster skillMaster)
        {
            _isFinished = false;
            SkillMaster = skillMaster;

            CustomEvent.Trigger(_target, "SkillActionThink", skillMaster);

            if (!_isFinished)
            {
                await UniTask.WaitUntil(() => _isFinished);
            }
        }
Exemple #2
0
        /// <summary>
        /// マスタデータからエフェクトを生成する
        /// </summary>
        EffectPlayer IEffectManager.CreatePlayer(MasterData.Skill.SkillMaster master)
        {
            // todo 存在するかチェックする
            if (string.IsNullOrEmpty(master.Filename))
            {
                return(null);
            }

            var player = _poolManager.Pop <EffectPlayer>(master.EffectType, master.Filename);

            if (player == null)
            {
                return(default(EffectPlayer));
            }

            return(player);
        }