async public override UniTask ProcessAsync(GActor[] inputParams) { GChess targetChess = inputParams[0] as GChess; Vector2Int targetLocation = inputParams[1].location; await Shoot(targetLocation); targetChess.Teleport(targetLocation); }
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); }
public void Cast(GChess chess, GFloor floor) { chess.Teleport(floor.location); }