Beispiel #1
0
    public async UniTask AssignSkill(GPlayerChess target, PlayerSkill skill, PlayerSkill replaceSkill)
    {
        await Shoot(target.location);

        if (replaceSkill == null)
        {
            target.AddSkill(skill);
        }
        else
        {
            target.ReplaceSkill(skill, replaceSkill);
        }
    }
    async public override UniTask ProcessAsync(GActor[] inputParams)
    {
        GPlayerChess target = inputParams[0] as GPlayerChess;

        target.AddSkill(addSKill);
    }