コード例 #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);
    }
コード例 #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);
    }
コード例 #3
0
 public void Cast(GChess chess, GFloor floor)
 {
     chess.Teleport(floor.location);
 }