Ejemplo n.º 1
0
    async public override UniTask ProcessAsync(GActor[] inputParams)
    {
        GChess     targetChess    = inputParams[0] as GChess;
        Vector2Int targetLocation = inputParams[1].location;

        await Shoot(targetLocation);

        targetChess.Teleport(targetLocation);
    }
Ejemplo n.º 2
0
    async public override UniTask ProcessAsync(GActor[] inputParams)
    {
        GChess chessa = inputParams[0] as GChess;
        GChess chessb = inputParams[1] as GChess;

        await Shoot(chessa.location);

        Vector2Int temp = chessa.location;

        chessa.Teleport(chessb.location);
        chessb.Teleport(temp);
    }
Ejemplo n.º 3
0
 public void Cast(GChess chess, GFloor floor)
 {
     chess.Teleport(floor.location);
 }