Example #1
0
    protected PerformVo(string perform_id, Units casterUnit)
    {
        this.perform_id = perform_id;
        this.data       = Singleton <PerformDataManager> .Instance.GetVo(perform_id);

        this.casterUnit = casterUnit;
        this.effect_id  = this.data.config.effect_id;
        if (StringUtils.CheckValid(this.data.endPerformId))
        {
            this.endPerform = PerformVo.Create(this.data.endPerformId, casterUnit);
        }
    }
Example #2
0
    public virtual void Start(string performID, EditorUnit unit, List <EditorUnit> targets, Vector3?pos, EditorSkill skill)
    {
        this.data = Singleton <PerformDataManager> .Instance.GetVo(performID);

        this.targets = targets;
        this.pos     = pos;
        this.unit    = unit;
        this.skill   = skill;
        this.data    = Singleton <PerformDataManager> .Instance.GetVo(performID);

        unit.StartCoroutine(this.PlayAnim());
        unit.StartCoroutine(this.PlayEffect());
        if (this.data.config.effect_time > 0f)
        {
            unit.StartCoroutine(this.Destroy());
        }
    }